:root {
    /* Professional Corporate Color Palette */
    --primary-color: #2c5282; /* Deep navy blue - professional, trustworthy */
    --primary-dark: #1a365d; /* Darker navy */
    --primary-light: #4299e1; /* Bright blue for accents */
    --secondary-color: #38a169; /* Professional green - success, growth */
    --secondary-dark: #276749; /* Darker green */
    --accent-color: #d69e2e; /* Warm gold for highlights */
    --success: #38a169; /* Match secondary */
    --warning: #d69e2e; /* Match accent */
    --danger: #e53e3e; /* Professional red */
    --info: #3182ce; /* Corporate blue */
    /* Neutral colors for text and backgrounds */
    --text-primary: #1a202c; /* Almost black - professional readability */
    --text-secondary: #4a5568; /* Dark gray */
    --text-light: #718096; /* Medium gray */
    --text-white: #ffffff;
    /* Background colors */
    --bg-body: #f7fafc; /* Very light blue-gray */
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.92);
    /* Border and surface colors */
    --border-color: #e2e8f0; /* Light gray border */
    /* Gradients for professional look */
    --gradient-primary: linear-gradient(135deg, #2c5282, #4299e1);
    --gradient-success: linear-gradient(135deg, #38a169, #48bb78);
    --gradient-warning: linear-gradient(135deg, #d69e2e, #ed8936);
    --gradient-dark: linear-gradient(135deg, #1a202c, #2d3748);
    /* Updated shadows for professional depth */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    /* Other variables remain the same */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: rgba(66, 153, 225, 0.3);
    color: var(--text-primary);
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-body);
    /* More subtle professional gradient */
    background-image: radial-gradient(circle at 10% 20%, rgba(44, 82, 130, 0.03) 0%, transparent 25%), radial-gradient(circle at 90% 80%, rgba(56, 161, 105, 0.03) 0%, transparent 25%);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Update scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #a0aec0;
    }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Professional Navbar */
/* Replace the existing .navbar styles with these: */
.navbar {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important; /* Changed to white */
    padding: 0.5rem 0;
    letter-spacing: -0.01em;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important; /* Changed to white with slight transparency */
    font-weight: 600 !important;
    font-size: 0.9rem;
    padding: 0.6rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin: 0 2px;
}

    .navbar-nav .nav-link:hover {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.1); /* Light overlay on hover */
    }

    .navbar-nav .nav-link.active {
        color: white !important;
        background-color: rgba(66, 153, 225, 0.3); /* Blue tint for active state */
        font-weight: 600 !important;
    }

/* Optional: Update dropdown menu for dark navbar */
.dropdown-menu {
    border: 1px solid #2d3748;
    background: #2d3748; /* Dark background */
    box-shadow: var(--shadow-elevated);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-top: 8px;
    color: white;
}

.dropdown-item {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

    .dropdown-item:hover {
        background-color: rgba(66, 153, 225, 0.2);
        color: white;
    }

    .navbar-nav .nav-link.active {
        color: var(--primary-color) !important;
        background-color: #e2e8f0;
        font-weight: 600 !important;
    }

/* Professional Dropdown */
.dropdown-menu {
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    box-shadow: var(--shadow-elevated);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-top: 8px;
    border-top: 3px solid var(--primary-color);
}

.dropdown-item {
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

    .dropdown-item:hover {
        background-color: #f7fafc;
        color: var(--primary-color);
    }

.dropdown-header {
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
}

/* Professional Hero Section */
.hero-section {
    background: var(--gradient-dark);
    color: white;
    padding: 4rem 1rem;
    border-radius: var(--radius-xl);
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
        background-size: 40px 40px;
        pointer-events: none;
        z-index: -1;
    }

    .hero-section h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        letter-spacing: -0.025em;
    }

    .hero-section .lead {
        font-size: 1.125rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.9);
        max-width: 600px;
        margin: 0 auto 2rem;
        line-height: 1.7;
    }

/* Professional Tables */
.table-responsive {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.table thead th {
    background-color: #f8fafc;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
    border-top: none;
}

.table thead.bg-primary th {
    background: var(--gradient-primary) !important;
    color: white;
    border-color: transparent;
}

.table thead.bg-success th {
    background: var(--gradient-success) !important;
    color: white;
    border-color: transparent;
}

.table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: var(--transition);
}

    .table tbody tr:hover {
        background-color: #f8fafc;
    }

.table tbody td {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 1rem;
    vertical-align: middle;
}

/* Professional Cards */
.card, .form-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    overflow: hidden;
}

    .card:hover {
        box-shadow: var(--shadow-hover);
        border-color: var(--primary-light);
        transform: translateY(-2px);
    }

.card-header, .form-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    font-weight: 600;
    color: var(--text-primary);
}

    .card-header h1, .card-header h2, .card-header h3,
    .card-header h4, .card-header h5 {
        margin: 0;
        font-weight: 600;
    }

    .card-header.bg-primary, .form-header.bg-primary {
        background: var(--gradient-primary) !important;
        color: white;
        border: 0;
    }

    .card-header.bg-success, .form-header.bg-success {
        background: var(--gradient-success) !important;
        color: white;
        border: 0;
    }

    .card-header.bg-warning, .form-header.bg-warning {
        background: var(--gradient-warning) !important;
        color: white;
        border: 0;
    }

    .card-header.bg-info, .form-header.bg-info {
        background: var(--gradient-dark) !important;
        color: white;
        border: 0;
    }

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Professional Buttons */
.btn {
    border-radius: var(--radius-md);
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    border: none;
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 2px 4px rgba(44, 82, 130, 0.2);
    color: white;
}

    .btn-primary:hover {
        box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
        transform: translateY(-1px);
    }

.btn-success {
    background: var(--gradient-success);
    box-shadow: 0 2px 4px rgba(56, 161, 105, 0.2);
    color: white;
}

    .btn-success:hover {
        box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
        transform: translateY(-1px);
    }

.btn-warning {
    background: var(--gradient-warning);
    box-shadow: 0 2px 4px rgba(214, 158, 46, 0.2);
    color: white;
}

    .btn-warning:hover {
        box-shadow: 0 4px 12px rgba(214, 158, 46, 0.3);
        transform: translateY(-1px);
    }

/* Outlined buttons */
.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: white;
    }

.btn-outline-success {
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    background: transparent;
}

    .btn-outline-success:hover {
        background: var(--secondary-color);
        color: white;
    }

/* Professional Forms */
.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    font-size: 0.875rem;
    transition: var(--transition);
}

    .form-control:focus, .form-select:focus {
        background-color: var(--bg-white);
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
        outline: none;
    }

/* Professional Approval Box */
.approval-summary-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.approval-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .approval-item:last-child {
        border: none;
    }

.approver-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Utility Classes */
.shadow-lg {
    box-shadow: var(--shadow-elevated) !important;
}

.section-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* Footer */
.footer {
    margin-top: auto;
    background: var(--bg-white);
    padding: 3rem 0;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

/* ===== DASHBOARD SPECIFIC STYLES ===== */

/* App Header */
.app-header {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.university-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: white !important;
}

.quick-access-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

/* Quick Access Links */
.hover-lift {
    transition: var(--transition);
    background: #f8fafc;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md);
}

    .hover-lift:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
        border-color: var(--primary-light) !important;
        background: var(--bg-white);
    }

/* Status Indicators */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.bg-success {
    background-color: var(--success) !important;
}

/* System Modules */
.system-module {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

/* Process Flow */
.process-flow {
    position: relative;
    padding-left: 30px;
}

    .process-flow::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(to bottom, var(--primary-light), var(--secondary-color));
        border-radius: 2px;
    }

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
}

    .step:last-child {
        margin-bottom: 0;
    }

.step-number {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    position: absolute;
    left: -30px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-content {
    margin-left: 1.5rem;
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.step-desc {
    color: var(--text-light);
    font-size: 0.8125rem;
}

/* Simple Process Flow */
.process-flow.simple::before {
    background: linear-gradient(to bottom, var(--warning), #ed8936);
}

.process-flow.simple .step-number {
    background: var(--gradient-warning);
}

/* Approval Chain */
.approval-chain {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.chain-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.chain-badge {
    background: var(--gradient-success);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chain-content {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Alerts */
.alert-light {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

    .alert-light .alert-heading {
        color: var(--primary-color);
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

/* Support Footer */
.support-footer {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

/* Border Accent Cards */
.border-start.border-primary {
    border-left-width: 4px !important;
    border-left-color: var(--primary-color) !important;
}

.border-start.border-success {
    border-left-width: 4px !important;
    border-left-color: var(--secondary-color) !important;
}

.border-start.border-warning {
    border-left-width: 4px !important;
    border-left-color: var(--warning) !important;
}

/* Professional Badges */
.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.01em;
}

    .badge.bg-primary {
        background: var(--gradient-primary) !important;
    }

    .badge.bg-success {
        background: var(--gradient-success) !important;
    }

    .badge.bg-warning {
        background: var(--gradient-warning) !important;
    }

/* List Groups */
.list-group-item {
    background: transparent;
    border-color: rgba(226, 232, 240, 0.5);
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.list-group-item-action:hover {
    background: #f7fafc;
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 3rem 1rem;
        margin: 1.5rem 0;
    }

    .app-header {
        padding: 1.5rem;
    }

    .system-module {
        padding: 1.5rem;
    }

    .quick-access-card {
        margin-top: 1.5rem;
    }

    .process-flow {
        padding-left: 20px;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        left: -24px;
    }

    .step-content {
        margin-left: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }
}

/* Additional professional touches */
.text-muted {
    color: var(--text-light) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-info {
    color: var(--info) !important;
}

/* Hover effects for all interactive elements */
a:not(.btn):hover {
    color: var(--primary-color) !important;
    transition: var(--transition);
}

/* Focus states for accessibility */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
.btn, .card, .hover-lift, .nav-link, .dropdown-item {
    transition: var(--transition);
}

/* Professional spacing for mobile */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
    }

    .card-body, .card-header, .card-footer {
        padding: 1rem;
    }
}
