/* HR Management System Custom Styles */

:root {
    --hrms-primary: #6366f1;
    --hrms-secondary: #10b981;
    --hrms-ink: #0b1020;
    --hrms-ink-2: #111a38;
    --hrms-surface: rgba(255, 255, 255, 0.92);
    --hrms-border: rgba(17, 24, 39, 0.10);
}

/* General Styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.hrms-portal {
    background: radial-gradient(1000px 520px at 10% 0%, rgba(99, 102, 241, 0.16), rgba(99, 102, 241, 0) 60%),
                radial-gradient(900px 560px at 90% 10%, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0) 55%),
                radial-gradient(900px 560px at 70% 100%, rgba(236, 72, 153, 0.10), rgba(236, 72, 153, 0) 55%),
                linear-gradient(180deg, #f6f7ff 0%, #f8fafc 55%, #f7fafc 100%);
}

.container-fluid {
    flex: 1;
}

.hrms-navbar {
    background: linear-gradient(135deg, var(--hrms-ink) 0%, var(--hrms-ink-2) 45%, var(--hrms-ink) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.20);
}

.hrms-navbar .navbar-brand {
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hrms-navbar .navbar-brand .hrms-nav-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    padding: 4px;
}

.hrms-navbar .nav-link {
    color: rgba(255, 255, 255, 0.82);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 0 2px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.hrms-navbar .nav-link:hover,
.hrms-navbar .nav-link:focus {
    color: rgba(255, 255, 255, 0.96);
    background: rgba(255, 255, 255, 0.10);
}

.hrms-navbar .dropdown-menu {
    border: 1px solid var(--hrms-border);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
    padding: 10px;
}

.hrms-navbar .dropdown-item {
    border-radius: 10px;
    padding: 10px 12px;
}

.hrms-navbar .dropdown-item:hover,
.hrms-navbar .dropdown-item:focus {
    background: rgba(99, 102, 241, 0.10);
}

/* Card Styles */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: none;
}

.hrms-portal .card {
    border-radius: 16px;
    border: 1px solid var(--hrms-border);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.08);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 15px 20px;
    border-radius: 10px 10px 0 0 !important;
}

.hrms-portal .card-header {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0.88) 100%);
    border-bottom: 1px solid var(--hrms-border);
    border-radius: 16px 16px 0 0 !important;
}

.card-body {
    padding: 20px;
}

/* Dashboard Stats */
.stats-card {
    transition: transform 0.3s ease;
    border-left: 4px solid #007bff;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card.employees {
    border-left-color: #28a745;
}

.stats-card.departments {
    border-left-color: #ffc107;
}

.stats-card.leaves {
    border-left-color: #dc3545;
}

.stats-card.documents {
    border-left-color: #6f42c1;
}

.stats-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.hrms-navbar .nav-link i.fa-tachometer-alt { color: #60a5fa; }
.hrms-navbar .nav-link i.fa-user-tie { color: #34d399; }
.hrms-navbar .nav-link i.fa-calendar-check { color: #f97316; }
.hrms-navbar .nav-link i.fa-chart-bar { color: #a78bfa; }
.hrms-navbar .nav-link i.fa-users-cog { color: #f43f5e; }
.hrms-navbar .nav-link i.fa-cog { color: #22d3ee; }

.hrms-navbar .dropdown-header {
    color: #111827;
    font-weight: 700;
}

.hrms-portal .stats-card {
    border: none;
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.hrms-portal .stats-card .card-body {
    position: relative;
    z-index: 1;
}
.hrms-portal .stats-card .stats-icon {
    font-size: 2rem;
    opacity: 1;
    background: rgba(255, 255, 255, 0.18);
    padding: 12px;
    border-radius: 14px;
    line-height: 1;
}
.hrms-portal .stats-card a {
    color: rgba(255, 255, 255, 0.95);
}
.hrms-portal .stats-card h6.text-muted {
    color: rgba(255, 255, 255, 0.82) !important;
}
.hrms-portal .stats-card.employees {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 18px 40px rgba(22, 163, 74, 0.25);
}
.hrms-portal .stats-card.leaves {
    background: linear-gradient(135deg, #fb923c 0%, #ef4444 100%);
    box-shadow: 0 18px 40px rgba(239, 68, 68, 0.25);
}
.hrms-portal .stats-card.documents {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    box-shadow: 0 18px 40px rgba(99, 102, 241, 0.25);
}

.hrms-portal .chart-card {
    border: 1px solid var(--hrms-border);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.08);
}
.hrms-portal .chart-card .card-header {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0.88) 100%);
    border-bottom: 1px solid var(--hrms-border);
    border-radius: 16px 16px 0 0 !important;
}
.hrms-portal .analytics-title {
    color: #111827;
    font-weight: 800;
    border: none;
    padding-bottom: 0;
}

/* Form Styles */
.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.required-field::after {
    content: " *";
    color: #dc3545;
}

/* Button Styles */
.btn {
    border-radius: 5px;
    padding: 8px 16px;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.hrms-portal .btn-primary {
    border: none;
    background: linear-gradient(135deg, var(--hrms-primary) 0%, var(--hrms-secondary) 100%);
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.18);
}

.hrms-portal .btn-primary:hover {
    filter: brightness(1.05);
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* Table Styles */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.hrms-portal .table {
    border-radius: 12px;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: none;
    padding: 12px 15px;
}

.hrms-portal .table th {
    background: rgba(99, 102, 241, 0.06);
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Status Badges */
.badge {
    padding: 6px 10px;
    font-weight: 500;
    border-radius: 4px;
}

/* Profile Page */
.profile-header {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-info h4 {
    margin-bottom: 5px;
}

.profile-info p {
    margin-bottom: 10px;
    color: #6c757d;
}

/* Document Cards */
.document-card {
    transition: transform 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
}

.document-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Leave Application */
.leave-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.leave-status-approved {
    background-color: #d4edda;
    color: #155724;
}

.leave-status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Calendar */
.calendar-day {
    height: 100px;
    border: 1px solid #dee2e6;
    padding: 5px;
}

.calendar-day-header {
    font-weight: bold;
    text-align: center;
    padding: 5px;
    background-color: #f8f9fa;
}

.calendar-event {
    padding: 2px 5px;
    margin-bottom: 2px;
    border-radius: 3px;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 50px auto;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 4rem;
    color: #0d6efd;
}

.login-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hrms-portal footer.bg-dark {
    background: linear-gradient(135deg, var(--hrms-ink) 0%, var(--hrms-ink-2) 45%, var(--hrms-ink) 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-header {
        text-align: center;
    }
    
    .profile-img {
        margin-bottom: 20px;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .container-fluid {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    body {
        background-color: #fff;
    }
}
