/* Reset e base styles - minimalista */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.5;
}

/* Navbar - preta */
.navbar {
    background: #1a202c;
    padding: 0;
    border-bottom: 1px solid #2d3748;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.navbar-brand {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 20px 0;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin-left: auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #a0aec0;
    text-decoration: none;
    padding: 20px 16px;
    display: block;
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #ffffff;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2d3748;
    min-width: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid #4a5568;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    color: #a0aec0;
    text-decoration: none;
    padding: 12px 16px;
    display: block;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #4a5568;
    color: #ffffff;
}

/* Main content */
.main-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.container {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    border: 1px solid #e2e8f0;
}

h1 {
    color: #1a202c;
    text-align: center;
    margin-bottom: 32px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Description sections - minimalista */
.description {
    background: #f7fafc;
    padding: 24px;
    border-radius: 6px;
    margin: 24px 0;
    border: 1px solid #edf2f7;
}

.description h3 {
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.description h4 {
    color: #4a5568;
    margin: 20px 0 12px 0;
    font-size: 16px;
    font-weight: 600;
}

.description p {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 16px;
}

.feature-list {
    list-style-type: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    color: #4a5568;
    font-size: 14px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.icon {
    color: #48bb78;
    margin-right: 8px;
    font-size: 12px;
}

/* Upload area - minimalista */
.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 48px 32px;
    text-align: center;
    margin: 32px 0;
    background: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #4299e1;
    background: #f7fafc;
}

.upload-area input[type="file"] {
    display: none !important;
}

.upload-area.dragover {
    border-color: #48bb78;
    background: #f0fff4;
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 16px;
    color: #4a5568;
}

.upload-area h3 {
    margin: 12px 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 500;
}

.upload-area p {
    color: #718096;
    margin: 8px 0;
    font-size: 14px;
}

/* File info */
.file-info {
    margin: 24px 0;
    padding: 20px;
    background: #f0fff4;
    border-radius: 6px;
    border: 1px solid #c6f6d5;
}

.file-info h4 {
    color: #2f855a;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

/* SEV options */
.sev-options {
    margin: 24px 0;
    padding: 24px;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.sev-options h4 {
    color: #2d3748;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.sev-options label {
    cursor: pointer;
    padding: 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4a5568;
}

.sev-options label:hover {
    background: #edf2f7;
}

#rangeInput {
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    width: 100%;
}

#rangeInput:focus {
    outline: none;
    border-color: #4299e1;
}

/* Buttons - minimalista */
.btn {
    display: inline-block;
    padding: 12px 20px;
    margin: 8px 4px;
    background: #4299e1;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn:hover:not(:disabled) {
    background: #3182ce;
}

.btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.btn-secondary {
    background: #718096;
}

.btn-secondary:hover {
    background: #4a5568;
}

.btn-success {
    background: #48bb78;
}

.btn-success:hover {
    background: #38a169;
}

.btn-toggle {
    background: none;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-toggle:hover {
    border-color: #4299e1;
    color: #4299e1;
}

/* Processing - minimalista */
.processing {
    text-align: center;
    padding: 24px;
}

.spinner {
    border: 2px solid #e2e8f0;
    border-top: 2px solid #4299e1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.message {
    padding: 16px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 14px;
}

.message.success {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #2f855a;
}

.message.error {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    color: #c53030;
}

/* Progress bar - minimalista */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #edf2f7;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4299e1;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Navigation buttons */
.nav-buttons {
    text-align: center;
    margin: 32px 0 16px 0;
}

/* Toast Notifications - minimalista */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
    padding: 16px;
    margin-bottom: 12px;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast-icon {
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #a0aec0;
    padding: 0;
    margin-left: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
    color: #718096;
}

/* Toast Types */
.toast.success {
    border-left: 3px solid #48bb78;
}

.toast.success .toast-icon {
    color: #48bb78;
}

.toast.error {
    border-left: 3px solid #e53e3e;
}

.toast.error .toast-icon {
    color: #e53e3e;
}

.toast.warning {
    border-left: 3px solid #ed8936;
}

.toast.warning .toast-icon {
    color: #ed8936;
}

.toast.info {
    border-left: 3px solid #4299e1;
}

.toast.info .toast-icon {
    color: #4299e1;
}

/* Progress bar na toast */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #e2e8f0;
    border-radius: 0 0 6px 6px;
    transition: width linear;
}

.toast-progress.success {
    background: #48bb78;
}

.toast-progress.error {
    background: #e53e3e;
}

.toast-progress.warning {
    background: #ed8936;
}

.toast-progress.info {
    background: #4299e1;
}

/* Responsive - minimalista */
@media (max-width: 768px) {
    .main-content {
        padding: 0 16px;
        margin: 24px auto;
    }
    
    .container {
        padding: 24px;
        border-radius: 6px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .upload-area {
        padding: 32px 20px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .toast.hide {
        transform: translateY(-100px);
    }
}

/* Remover animações para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .toast {
        transition: none !important;
    }
}