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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 20px;
}

.navbar {
    background: rgba(255,255,255,0.95);
    padding: 15px 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 1000px;
    margin: 0 auto 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.navbar-brand {
    font-size: 1.3em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.navbar-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.navbar-links a {
    color: #555;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95em;
}

.navbar-links a:hover,
.navbar-links a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-badge.doctor {
    background: #e3f2fd;
    color: #1565c0;
}

.language-switcher {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.language-btn:hover {
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    border-color: #667eea;
}

.language-chevron {
    width: 16px;
    height: 16px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 1000;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
}

.language-option:hover {
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
}

.language-option.active {
    background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
    font-weight: 600;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 { color: #333; text-align: center; margin-bottom: 10px; font-size: 2em; }
h2 { color: #555; margin-bottom: 20px; font-size: 1.3em; }
h3 { color: #667eea; margin-bottom: 15px; }

.subtitle { color: #666; text-align: center; margin-bottom: 30px; font-size: 1.1em; }

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.5);
}

.btn-secondary { background: #6c757d; box-shadow: 0 4px 15px rgba(108,117,125,0.4); }
.btn-success { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); }
.btn-sm { padding: 10px 25px; font-size: 0.95em; }
.btn-center { text-align: center; }

.flash-container { max-width: 900px; margin: 0 auto 20px; }

.flash-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.flash-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; color: #333; font-weight: 600; }

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.2);
}

.card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.card-highlight {
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    border-left: 4px solid #667eea;
}

.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #e0e0e0; }

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

th:first-child { border-radius: 10px 0 0 0; }
th:last-child { border-radius: 0 10px 0 0; }
tr:hover { background: #f8f9fa; }

.table-link { color: #667eea; text-decoration: none; font-weight: 600; }
.table-link:hover { text-decoration: underline; }

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.badge-low { background: #d4edda; color: #155724; }
.badge-moderate { background: #fff3cd; color: #856404; }
.badge-high { background: #f8d7da; color: #721c24; }

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}

.disclaimer h4 { color: #856404; margin-bottom: 10px; }
.disclaimer p { color: #856404; font-size: 0.95em; line-height: 1.6; }

.success-box {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
}

.success-box h2 { color: #155724; margin-bottom: 15px; }

.submission-id {
    font-size: 2em;
    font-weight: 700;
    color: #28a745;
    letter-spacing: 3px;
    background: white;
    padding: 15px 30px;
    border-radius: 10px;
    display: inline-block;
    margin: 10px 0;
    font-family: monospace;
}

.empty-state { text-align: center; padding: 60px 20px; color: #888; }
.empty-state-icon { font-size: 4em; margin-bottom: 20px; }

.divider { display: flex; align-items: center; margin: 30px 0; color: #888; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #e0e0e0; }
.divider span { padding: 0 15px; }
