:root {
    --primary-color: #c89b00;
    --primary-dark: #a07c00;
    --secondary-color: #2c3e50;
    --accent-color: #8e44ad;
    --bg-gradient-start: #d4af37;
    --bg-gradient-end: #f5e6a3;
    --text-dark: #333;
    --text-light: #fff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
}

.main-title {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.title-highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Card Principal */
.converter-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    flex: 1;
}

.converter-card:hover {
    transform: translateY(-5px);
}

/* Mode Selector */
.mode-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 12px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-btn i {
    font-size: 1.1rem;
}

.mode-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.mode-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Input Group */
.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.modern-textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    resize: vertical;
    font-family: inherit;
}

.modern-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 155, 0, 0.2);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 14px 30px;
    background: linear-gradient(45deg, var(--primary-color), #e6b800);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(45deg, #e6b800, var(--primary-color));
}

.btn-secondary {
    padding: 12px 25px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #1a252f;
    transform: translateY(-2px);
}

/* Result Area */
.result-area {
    margin-top: 20px;
}

.result-label {
    display: block;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.result-box {
    min-height: 100px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed var(--primary-color);
    font-size: 1.8rem;
    line-height: 1.8;
    word-wrap: break-word;
    text-align: center;
    transition: all 0.3s ease;
}

.result-box .placeholder {
    font-size: 1rem;
    color: #999;
}

.result-box:not(:empty) {
    background: linear-gradient(135deg, #fff8e7, #fff);
}

/* Footer */
.site-footer {
    background: var(--secondary-color);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-link i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Animações */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsividade */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .converter-card {
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.4rem;
    }
    
    .mode-selector {
        flex-direction: column;
    }
    
    .mode-btn {
        width: 100%;
        justify-content: center;
    }
    
    .result-box {
        font-size: 1.4rem;
    }
}