/* ========================================
   NEURAFLOW - PROFESSIONAL CSS STYLESHEET
   ======================================== */

/* --------- CSS Variables --------- */
:root {
    /* Colors */
    --primary-color: #0066cc;
    --primary-dark: #004999;
    --primary-light: #e8f1ff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    --gradient-light: linear-gradient(135deg, #e8f1ff 0%, #f2f7ff 100%);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-primary: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Courier New", monospace;
}

/* ----------- Global Reset ----------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* ----------- Navigation/Header Styling ----------- */
.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
    border-bottom: 3px solid var(--primary-dark);
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
    position: relative;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.navbar-toggler {
    border: 2px solid white !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.dropdown-menu {
    background: white;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    animation: slideDown 0.3s ease;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #333;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding-left: 2rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------- Badge Styling ----------- */
.badge {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

/* ----------- Container Styling ----------- */
.container {
    padding: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
}

/* ----------- Alerts ----------- */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
}

.alert-danger {
    border-left-color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
}

.alert-success {
    border-left-color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
}

.alert-info {
    border-left-color: var(--info-color);
    background: rgba(23, 162, 184, 0.1);
    color: #0c5460;
}

.alert-warning {
    border-left-color: var(--warning-color);
    background: rgba(255, 193, 7, 0.1);
    color: #664d03;
}

/* ----------- Forms ----------- */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

input[type="file"],
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border: 2px solid #e0e0e0;
    background: #f8f9fa;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

input[type="file"]:hover,
textarea:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="password"]:hover,
select:hover {
    border-color: #d0d0d0;
    background: white;
}

input[type="file"]:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ----------- Buttons ----------- */
button,
.btn {
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    user-select: none;
}

.btn-primary,
button {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
button:hover {
    background: linear-gradient(135deg, #004999 0%, #003366 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active,
button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ----------- Cards & Result Display ----------- */
.card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.result-card {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: var(--gradient-light);
    border: 2px solid #d8e4ff;
    animation: slideDown 0.5s ease;
}

.result-card h3 {
    margin-top: 0;
    color: var(--primary-dark);
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
}

.score-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.score-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.score-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.score-box p {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.score-box strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ----------- Highlighted Resume ----------- */
.highlighted-resume {
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-lg);
    background: white;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 400px;
    font-size: 0.95rem;
    line-height: 1.8;
    font-family: var(--font-mono);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.highlighted-resume mark {
    background: linear-gradient(120deg, #d4edda 0%, #c3e6cb 100%);
    padding: 0 0.25rem;
    border-radius: 2px;
    font-weight: 600;
    color: #155724;
}

.highlighted-resume .missing {
    background: linear-gradient(120deg, #f8d7da 0%, #f5c6cb 100%);
    padding: 0 0.25rem;
    border-radius: 2px;
    color: #721c24;
}

/* ----------- AI Suggestions ----------- */
.ai-suggestions {
    background: linear-gradient(135deg, #fff7e6 0%, #fffbf0 100%);
    border-left: 4px solid var(--warning-color);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.ai-suggestions h4 {
    color: #ff8c00;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ai-suggestions p {
    margin: 0.75rem 0;
    line-height: 1.8;
}

/* ----------- Tables ----------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

thead {
    background: var(--gradient-primary);
    color: white;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    border: none;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

tbody tr:hover {
    background: var(--primary-light);
}

tbody tr:nth-child(even) {
    background: #f8f9fa;
}

/* ----------- Footer ----------- */
footer {
    background: var(--gradient-primary);
    color: white;
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    font-weight: 500;
}

/* ----------- Responsive Design ----------- */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .score-section {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1.5rem;
    }
}

/* ----------- Utilities ----------- */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 2rem;
}
