:root {
    --primary-color: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f2744;
    --secondary-color: #2d3748;
    --accent-color: #3182ce;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --danger-color: #e53e3e;
    --info-color: #00b5d8;
    --light-bg: #f7fafc;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    --gradient-hero: linear-gradient(135deg, #1a365d 0%, #2b6cb0 50%, #3182ce 100%);
    --border-radius: 0.5rem;
    --transition-base: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--light-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--secondary-color);
}

.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.navbar-brand i {
    color: #ffd700;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    margin: 0 0.125rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--card-shadow-hover);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    transition: var(--transition-base);
}

.dropdown-item:hover {
    background-color: var(--light-bg);
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition-base);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
}

.stat-card {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stat-card .card-body {
    position: relative;
    z-index: 1;
}

.stat-card .stat-icon {
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .card-footer {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0.5rem 1rem;
}

.stat-card .card-footer a {
    font-size: 0.875rem;
    opacity: 0.9;
}

.stat-card .card-footer a:hover {
    opacity: 1;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #276749 0%, #38a169 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #086f83 0%, #00b5d8 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #975a16 0%, #d69e2e 100%) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%) !important;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #9b2c2c 0%, #e53e3e 100%) !important;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #edf2f7;
}

.table-hover tbody tr {
    transition: var(--transition-base);
}

.table-hover tbody tr:hover {
    background-color: #edf2f7;
}

.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.25px;
}

.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    letter-spacing: 0.25px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f2744 0%, #1a365d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #276749 0%, #38a169 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e4e38 0%, #276749 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 103, 73, 0.4);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-outline-success {
    border-color: var(--success-color);
    color: var(--success-color);
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #276749 0%, #38a169 100%);
    border-color: var(--success-color);
    transform: translateY(-1px);
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    padding: 0.625rem 1rem;
    transition: var(--transition-base);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.375rem;
}

.list-group-item {
    border-color: #edf2f7;
    padding: 1rem 1.25rem;
    transition: var(--transition-base);
}

.list-group-item:hover {
    background-color: #f8fafc;
}

.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 0;
    margin: -1.5rem -0.75rem 2rem;
    border-radius: 0 0 1rem 1rem;
}

.page-header h1 {
    font-weight: 700;
    margin: 0;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0.5rem 0 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item.active {
    color: white;
}

.login-page {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 30px) rotate(5deg); }
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.login-brand {
    color: var(--primary-color);
}

.login-brand i {
    color: #d69e2e;
    font-size: 4rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.login-brand h2 {
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 2px;
    margin-top: 1rem;
    color: var(--primary-color);
}

.login-brand p {
    color: #718096;
    font-size: 0.95rem;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
}

.feature-card .feature-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.feature-card h5 {
    font-weight: 600;
    color: var(--primary-color);
}

.feature-card p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.quick-action-btn:hover {
    transform: translateX(5px);
}

.quick-action-btn i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

.section-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

.empty-state {
    padding: 3rem 2rem;
    text-align: center;
    color: #a0aec0;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
}

.modal-header .btn-close-white {
    filter: brightness(0) invert(1);
}

.list-group-item-action:hover {
    transform: translateX(2px);
}

.card.border-0.shadow-sm {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06) !important;
}

.card.border-0.shadow-sm:hover {
    transform: none;
}

.footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

@media (max-width: 992px) {
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-card .stat-icon {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem 0;
        margin: -1.5rem -0.75rem 1.5rem;
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .login-card {
        margin: 1rem;
        border-radius: 1rem;
    }
}

.status-pending { background-color: #ecc94b !important; color: #744210 !important; }
.status-approved, .status-accredited { background-color: #48bb78 !important; color: white !important; }
.status-rejected, .status-suspended { background-color: #fc8181 !important; color: #742a2a !important; }
.status-active { background-color: #4299e1 !important; color: white !important; }
.status-completed { background-color: #38a169 !important; color: white !important; }

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

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

.welcome-section {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.welcome-section h2 {
    color: var(--primary-color);
    font-weight: 700;
}

.welcome-section p {
    color: #718096;
    margin: 0;
}
