/**
 * Edusmart Website - Custom CSS
 * 
 * Additional custom styles for the seniority portal.
 * Modern, minimal, and classy aesthetic.
 */

/* Hero section */
.hero-section {
    background: linear-gradient(160deg, #fafbfc 0%, #e7ecef 100%);
    position: relative;
    overflow: hidden;
}


.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(15, 52, 96, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* Feature cards hover effect */
.card.h-100 {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card.h-100:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Feature icon styling */
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--primary-color);
}

/* Stats number animation */
.display-4 {
    transition: all var(--transition-normal);
}

.card:hover .display-4 {
    transform: scale(1.05);
}

/* Quick action form */
.form-control-lg::placeholder {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Acknowledgement status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Seniority number display */
code.fs-5, .seniority-number {
    background-color: var(--accent-light);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    color: var(--primary-color);
    font-weight: 600;
    font-family: 'Inter', monospace;
}

/* Table improvements */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table-sm th,
.table-sm td {
    padding: 0.5rem 0.75rem;
}

.table-borderless td,
.table-borderless th {
    border: 0;
}

.table th {
    color: var(--text-muted);
    font-weight: 500;
}

/* Login form card */
.login-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.login-card .card-header {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 2rem;
    text-align: center;
}

/* OTP verification styling */
#otp:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.15);
}

/* Dropdown menu styling */
.dropdown-menu {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.625rem 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

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

.dropdown-item.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Divider styling */
.dropdown-divider {
    border-color: var(--border-color);
    margin: 0.375rem 0;
}

/* Welcome card */
.welcome-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    border-radius: 16px;
    color: #fff;
}

/* Stat card styling */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

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

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Empty state styling */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

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

/* Section headers */
.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Info blocks */
.info-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.info-block:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Brand text in header */
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text .brand-name {
    font-weight: 600;
    color: var(--text-dark);
}

.brand-text .brand-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Navigation link hover */
.nav-link-custom {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link-custom:hover {
    color: var(--primary-color);
    background: var(--accent-light);
}

/* Active navigation link - Elite style with underline */
.nav-link-custom.active {
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: calc(0.5rem - 3px);
}

/* Print styles */
@media print {
    .navbar,
    .site-header,
    .btn,
    footer {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    body {
        background: #fff !important;
    }
}

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

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Subtle pulse for important elements */
@keyframes subtlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.pulse {
    animation: subtlePulse 2s ease-in-out infinite;
}

/* Accessibility: Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .pulse {
        animation: none;
    }
    
    .card,
    .card.h-100,
    .btn,
    .nav-link-custom,
    .dropdown-item {
        transition: none;
    }
}
