/* Root Variables - SAJCO Theme */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2d5a87;
    --accent-color: #4299e1;
    --gold-color: #d69e2e;
    --success-color: #38a169;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease;
    --sajco-gradient: linear-gradient(135deg, #1a365d 0%, #2d5a87 50%, #4299e1 100%);
    --gold-gradient: linear-gradient(135deg, #d69e2e 0%, #f6e05e 100%);
    --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Hero Section with Animated Background */
.hero-section {
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.equalizer-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    padding: 0 20px;
    gap: 8px;
}

.equalizer-bar {
    width: 6px;
    background: linear-gradient(to top, #ffd700, #ffed4a, #fff176);
    border-radius: 3px;
    animation: equalizer 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transform-origin: bottom;
    transition: all 0.3s ease;
}

.equalizer-bar:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    transform: scaleY(1.2);
}

.equalizer-bar:nth-child(1) {
    animation-delay: 0s;
    height: 30px;
}

.equalizer-bar:nth-child(2) {
    animation-delay: 0.1s;
    height: 60px;
}

.equalizer-bar:nth-child(3) {
    animation-delay: 0.2s;
    height: 45px;
}

.equalizer-bar:nth-child(4) {
    animation-delay: 0.3s;
    height: 80px;
}

.equalizer-bar:nth-child(5) {
    animation-delay: 0.4s;
    height: 35px;
}

.equalizer-bar:nth-child(6) {
    animation-delay: 0.5s;
    height: 70px;
}

.equalizer-bar:nth-child(7) {
    animation-delay: 0.6s;
    height: 50px;
}

.equalizer-bar:nth-child(8) {
    animation-delay: 0.7s;
    height: 90px;
}

.equalizer-bar:nth-child(9) {
    animation-delay: 0.8s;
    height: 40px;
}

.equalizer-bar:nth-child(10) {
    animation-delay: 0.9s;
    height: 65px;
}

.equalizer-bar:nth-child(11) {
    animation-delay: 1s;
    height: 55px;
}

.equalizer-bar:nth-child(12) {
    animation-delay: 1.1s;
    height: 75px;
}

.equalizer-bar:nth-child(13) {
    animation-delay: 1.2s;
    height: 45px;
}

.equalizer-bar:nth-child(14) {
    animation-delay: 1.3s;
    height: 85px;
}

.equalizer-bar:nth-child(15) {
    animation-delay: 1.4s;
    height: 35px;
}

.equalizer-bar:nth-child(16) {
    animation-delay: 1.5s;
    height: 60px;
}

.equalizer-bar:nth-child(17) {
    animation-delay: 1.6s;
    height: 70px;
}

.equalizer-bar:nth-child(18) {
    animation-delay: 1.7s;
    height: 50px;
}

.equalizer-bar:nth-child(19) {
    animation-delay: 1.8s;
    height: 80px;
}

.equalizer-bar:nth-child(20) {
    animation-delay: 1.9s;
    height: 40px;
}

@keyframes equalizer {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1.8);
        opacity: 1;
    }
}

/* Additional floating particles for enhanced visual effect */
.animated-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 237, 74, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 60%, rgba(255, 241, 118, 0.1) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(-10px) rotate(240deg); }
}

/* VoIP Icon Styling */
.voip-icon-container {
    display: inline-block;
    margin-bottom: 20px;
    animation: voipPulse 3s ease-in-out infinite;
}

.voip-icon {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    transition: all 0.3s ease;
}

.voip-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
}

@keyframes voipPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.signal-wave {
    animation: signalPulse 2s ease-in-out infinite;
}

.signal-wave:nth-child(1) { animation-delay: 0s; }
.signal-wave:nth-child(2) { animation-delay: 0.3s; }
.signal-wave:nth-child(3) { animation-delay: 0.6s; }

@keyframes signalPulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

.network-dot {
    animation: networkBlink 1.5s ease-in-out infinite;
}

.network-dot:nth-child(1) { animation-delay: 0s; }
.network-dot:nth-child(2) { animation-delay: 0.4s; }
.network-dot:nth-child(3) { animation-delay: 0.8s; }
.network-dot:nth-child(4) { animation-delay: 1.2s; }

@keyframes networkBlink {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* Glowing Sun Logo */
.sun-logo-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    pointer-events: none;
}

.sun-logo {
    position: relative;
    width: 80px;
    height: 80px;
    animation: sunGlow 3s ease-in-out infinite alternate;
}

.sun-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

.sun-rays {
    animation: sunRotate 10s linear infinite;
    transform-origin: 50px 50px;
}

.sun-text {
    font-size: 8px;
    font-weight: bold;
    fill: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

@keyframes sunGlow {
    0% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
        transform: scale(1);
    }
    100% {
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1)) drop-shadow(0 0 35px rgba(255, 165, 0, 0.5));
        transform: scale(1.05);
    }
}

@keyframes sunRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .sun-logo-container {
        top: 15px;
        left: 15px;
    }
    
    .sun-logo {
        width: 60px;
        height: 60px;
    }
    
    .sun-text {
        font-size: 6px;
    }
    
    .voip-icon {
        width: 80px;
        height: 80px;
    }
    
    .equalizer-container {
        gap: 4px;
    }
    
    .equalizer-bar {
        width: 4px;
    }
    
    .equalizer-bar:nth-child(n) {
        height: 20px;
    }
    
    .equalizer-bar:nth-child(4n) {
        height: 40px;
    }
    
    .equalizer-bar:nth-child(8n) {
        height: 60px;
    }
}

/* Font Configuration */
body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

[dir="ltr"] body {
    font-family: 'Inter', sans-serif;
}

/* SAJCO Brand Enhancements */
.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand .brand-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-image {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.navbar-brand img {
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 5px;
}

.bg-primary {
    background: var(--sajco-gradient) !important;
}

.btn-primary {
    background: var(--sajco-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
}

.btn-warning {
    background: var(--gold-gradient);
    border: none;
    color: #1a365d;
    font-weight: 600;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 158, 46, 0.4);
}

/* Cards and Tables Enhancement */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Employee Information Styling */
.employee-info {
    line-height: 1.4;
}

.employee-name {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.job-info {
    line-height: 1.4;
}

.contact-info {
    line-height: 1.4;
}

.contact-info .mobile-number,
.contact-info .email {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Enhanced Table Styling */
.table th {
    background: var(--sajco-gradient);
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px 12px;
    text-align: center;
}

.table td {
    padding: 15px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

.table tbody tr:hover {
    background-color: rgba(26, 54, 93, 0.05);
    transform: scale(1.01);
    transition: var(--transition);
}

/* Extension Number Styling */
.table td:first-child {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    background: rgba(26, 54, 93, 0.05);
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
}

/* Badge Enhancements */
.badge {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 15px;
    font-weight: 500;
}

/* Department Information Styling */
.department-info {
    line-height: 1.4;
}

.department-name {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.manager-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.manager-info i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.extensions-count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.extensions-count .badge {
    font-size: 0.9rem;
    padding: 8px 12px;
}

/* Stats Cards Enhancement */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.stats-card .stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    font-size: 1.5rem;
}

.stats-card .stats-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stats-card .stats-content p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0;
}

/* Page Header Enhancement */
.page-header {
    background: var(--sajco-gradient);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header .page-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-header .page-title i {
    font-size: 1.8rem;
    opacity: 0.8;
}

.page-header .page-actions {
    display: flex;
    gap: 10px;
}

.page-header .page-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: var(--transition);
}

.page-header .page-actions .btn:hover {
    background: white;
    color: var(--primary-color);
}

/* Activity Log Enhancement */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    color: var(--primary-color);
    margin-top: 5px;
}

.activity-content {
    flex: 1;
}

.activity-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark-color);
}

/* Search Enhancement */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
}

/* Employee Directory Styling */
.search-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: var(--sajco-gradient);
    color: white;
}

.search-card .form-control,
.search-card .form-select {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.search-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-card .form-floating > label {
    color: rgba(255, 255, 255, 0.8);
}

.search-card .form-control:focus,
.search-card .form-select:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.employee-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.employee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.employee-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.employee-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.employee-basic-info {
    flex: 1;
}

.employee-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.employee-name-alt {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 3px 0 0 0;
}

.employee-status {
    align-self: flex-start;
}

.employee-body {
    padding: 20px;
}

.employee-info-row {
    margin-bottom: 15px;
}

.employee-info-row:last-child {
    margin-bottom: 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    width: 20px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.info-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
    min-width: 80px;
}

.info-value {
    font-size: 0.95rem;
    color: var(--dark-color);
    font-weight: 500;
}

.employee-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.employee-footer .btn {
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 8px 12px;
}

/* Form Floating Enhancements */
.form-floating {
    position: relative;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    border-radius: 10px;
}

.form-floating > label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .employee-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .employee-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .employee-name {
        font-size: 1.1rem;
    }
    
    .page-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .page-header .page-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .employee-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .employee-header {
        background: #f8f9fa !important;
        color: #333 !important;
    }
    
    .search-card,
    .employee-footer {
        display: none;
    }
}
}
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: var(--sajco-gradient);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(26, 54, 93, 0.05);
    transform: scale(1.02);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid #e9ecef;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sajco-gradient);
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.stats-icon {
    font-size: 2.5rem;
    color: var(--gold-color);
    margin-bottom: 1rem;
}

/* Form Enhancements */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Search and Filter Bar */
.search-bar {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.search-input {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1.5rem;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .table-responsive {
        border-radius: 10px;
    }
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-brand {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

[dir="rtl"] .btn-group .btn:first-child {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

[dir="rtl"] .btn-group .btn:last-child {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

/* Layout */
.main-content {
    min-height: calc(100vh - 200px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
}

/* Navigation */
.navbar {
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
}

.brand-text {
    display: inline-block;
    margin-top: 0.25rem;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #007bff);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" fill-opacity="0.1"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 80px;
    height: 80px;
    filter: brightness(0) invert(1);
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.feature-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Features Section */
.features-section {
    background: var(--light-color);
}

.feature-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon-lg {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-box h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Cards */
.card {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background: var(--light-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

.card-title {
    margin: 0;
    font-weight: 600;
}

/* Statistics Cards */
.stats-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-right: 1rem;
}

[dir="rtl"] .stats-icon {
    margin-right: 0;
    margin-left: 1rem;
}

.stats-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
}

.stats-content p {
    margin: 0;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Enhanced Tables */
.table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 0;
}

.table th {
    background: var(--sajco-gradient);
    color: white;
    font-weight: 600;
    text-align: center;
    border: none;
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(26, 54, 93, 0.05) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Enhanced Table Content */
.employee-name, .department-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-info i {
    width: 16px;
    color: var(--primary-color);
}

.job-info {
    line-height: 1.4;
}

.job-info small {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

/* Enhanced Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

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

.badge.bg-info {
    background: linear-gradient(135deg, #3182ce 0%, #63b3ed 100%) !important;
}

/* Enhanced Action Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-group-sm .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius);
    margin: 0 1px;
    transition: all 0.3s ease;
}

.btn-group-sm .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

.btn-outline-danger {
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-info {
    border: 2px solid var(--info-color);
    color: var(--info-color);
    background: transparent;
}

.btn-outline-info:hover {
    background: var(--info-color);
    border-color: var(--info-color);
    color: white;
    transform: translateY(-2px);
}

/* Enhanced Button Groups */
.btn-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
}

.btn-group .btn {
    position: relative;
    border-radius: 0;
    border: none;
    margin: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.btn-group .btn + .btn {
    margin-left: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
    background: #004494;
    border-color: #004494;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius);
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.alert-dismissible .btn-close {
    padding: 0.75rem;
}

/* Login Page */
.login-section {
    background: linear-gradient(135deg, var(--primary-color), #007bff);
    color: white;
}

.login-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--dark-color);
}

.login-logo {
    width: 60px;
    height: 60px;
}

/* Activity Log */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    margin-right: 1rem;
    margin-top: 0.25rem;
    color: var(--primary-color);
}

[dir="rtl"] .activity-icon {
    margin-right: 0;
    margin-left: 1rem;
}

.activity-content {
    flex: 1;
}

.activity-text {
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

/* Error Page */
.error-page h1 {
    font-weight: 700;
    opacity: 0.5;
}

.error-page h2 {
    font-weight: 600;
    color: var(--primary-color);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    margin: 0 0.125rem;
}

.pagination .page-link:hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stats-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    [dir="rtl"] .stats-icon {
        margin-left: 0;
        margin-bottom: 1rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-logo {
        width: 60px;
        height: 60px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: var(--border-radius) !important;
        margin-bottom: 0.25rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .brand-text {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .page-actions,
    .btn,
    .pagination,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .page-header {
        border-bottom: 2px solid #000 !important;
    }
    
    .table th {
        background: #f8f9fa !important;
        color: #000 !important;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
*:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Selection Styles */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}
