/* HR Management System Custom Styles */

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

.container-fluid {
    flex: 1;
}

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

.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;
}

.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;
}

/* 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;
}

.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;
}

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

.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);
}

/* 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;
    }
}