/* Variáveis CSS para temas */
:root {
    /* Tema claro */
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-secondary: rgba(255, 255, 255, 0.95);
    --bg-tertiary: #f8f9fa;
    --bg-input: #fafafa;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    --overlay-bg: rgba(0, 0, 0, 0.8);
    --footer-text: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] {
    /* Tema escuro */
    --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --bg-secondary: rgba(30, 30, 45, 0.95);
    --bg-tertiary: #2a2a3e;
    --bg-input: #1e1e2e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --border-color: #444;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.5);
    --overlay-bg: rgba(0, 0, 0, 0.9);
    --footer-text: rgba(255, 255, 255, 0.6);
}

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.header-content {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px var(--shadow-color);
    position: relative;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Botão de alternância de tema */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
    color: white;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 8px 25px var(--shadow-heavy);
}

[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, #4a90e2, #357abd);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: #667eea;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    transition: color 0.3s ease;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Input Section */
.input-section {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px var(--shadow-color);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Input Tabs */
.input-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    transition: border-color 0.3s ease;
}

.input-tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.input-tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Input Content */
.input-content {
    position: relative;
}

.input-panel {
    display: none;
}

.input-panel.active {
    display: block;
}

/* Upload Section */
.upload-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(102, 126, 234, 0.05);
}

.upload-area:hover {
    border-color: #764ba2;
    background: rgba(118, 75, 162, 0.05);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #764ba2;
    background: rgba(118, 75, 162, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    margin-bottom: 20px;
}

.upload-icon i {
    font-size: 4rem;
    color: #667eea;
}

.upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.upload-area p {
    color: #666;
    margin-bottom: 30px;
}

.select-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* Manual Input Area */
.manual-input-area {
    padding: 20px 0;
}

.input-header {
    text-align: center;
    margin-bottom: 30px;
}

.input-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.input-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.input-controls {
    margin-bottom: 20px;
}

#manualInput {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: var(--bg-input);
    color: var(--text-primary);
}

#manualInput:focus {
    outline: none;
    border-color: #667eea;
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#manualInput::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.input-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.clear-input-btn, .add-sample-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-input-btn {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

.clear-input-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
}

.add-sample-btn {
    background: linear-gradient(135deg, #2ed573, #1e90ff);
    color: white;
    box-shadow: 0 5px 15px rgba(46, 213, 115, 0.3);
}

.add-sample-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46, 213, 115, 0.4);
}

.manual-stats {
    background: var(--bg-tertiary);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    border-left: 4px solid #667eea;
    transition: background 0.3s ease;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-item i {
    color: #667eea;
    font-size: 1rem;
}

.stat-item:nth-child(2) i {
    color: #2ed573;
}

.stat-item:nth-child(3) i {
    color: #ffc107;
}

/* File List */
.file-list {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.file-list h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
    transition: background 0.3s ease;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    color: #667eea;
    font-size: 1.2rem;
}

.file-details h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.file-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.remove-file {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: #ff3742;
    transform: scale(1.05);
}

/* Controls */
.controls {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.check-btn, .clear-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-btn {
    background: linear-gradient(135deg, #2ed573, #1e90ff);
    color: white;
    box-shadow: 0 10px 20px rgba(46, 213, 115, 0.3);
}

.check-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(46, 213, 115, 0.4);
}

.check-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.clear-btn {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 71, 87, 0.3);
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 71, 87, 0.4);
}

.help-btn {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

.help-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.4);
}

/* Progress Section */
.progress-section {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px var(--shadow-color);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
    transition: background 0.3s ease;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #2ed573, #1e90ff);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Results Section */
.results-section {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px var(--shadow-color);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.results-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.results-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.stat.available {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
}

.stat.unavailable {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

.stat.error {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

/* Tabs */
.results-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    transition: border-color 0.3s ease;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
    min-height: 200px;
}

.tab-content.active {
    display: block;
}

.nick-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.nick-item {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nick-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.nick-item.available {
    border-left-color: #2ed573;
    background: rgba(46, 213, 115, 0.05);
}

.nick-item.unavailable {
    border-left-color: #ff4757;
    background: rgba(255, 71, 87, 0.05);
}

.nick-item.error {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.05);
}

.nick-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.nick-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Export Section */
.export-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.export-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--footer-text);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Notificações */
.notification-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.notification-message {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.8;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #667eea;
}

.loading-spinner p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Scrollbar personalizada */
.nick-list::-webkit-scrollbar {
    width: 8px;
}

.nick-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.nick-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.nick-list::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-content {
        padding: 30px 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .input-section {
        padding: 30px 20px;
    }
    
    .input-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .input-tab-btn {
        justify-content: center;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .input-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .manual-stats {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .results-tabs {
        flex-wrap: wrap;
    }
    
    .nick-list {
        grid-template-columns: 1fr;
    }
    
    .export-section {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .upload-area h3 {
        font-size: 1.3rem;
    }
    
    .results-stats {
        flex-direction: column;
        align-items: flex-start;
    }
} 
