/* Main CSS for Maslow HR App */

/* ============ CSS Variables ============ */
:root {
    --sidebar-width: 250px;
    --navbar-height: 56px;
}

/* ============ Body & Layout ============ */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* ============ Navbar ============ */
.navbar-brand {
    font-weight: 600;
}

.navbar .nav-link {
    padding: 0.5rem 1rem;
}

.navbar .nav-link.active {
    font-weight: 500;
}

/* ============ Cards ============ */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

[data-bs-theme="dark"] .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

/* ============ Tables ============ */
.table-hover tbody tr:hover {
    cursor: pointer;
}

.table th {
    font-weight: 600;
    white-space: nowrap;
}

/* ============ Forms ============ */
.form-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* ============ Buttons ============ */
.btn-icon {
    padding: 0.25rem 0.5rem;
}

/* ============ Badges ============ */
.badge-active {
    background-color: var(--bs-success);
}

.badge-inactive {
    background-color: var(--bs-secondary);
}

/* ============ Search & Filters ============ */
.search-box {
    max-width: 400px;
}

.filter-section {
    background-color: var(--bs-body-bg);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* ============ Stats Cards ============ */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

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

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--bs-secondary);
    margin-top: 0.5rem;
}

/* ============ Employee Detail ============ */
.employee-header {
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.employee-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
}

/* ============ Loading States ============ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ============ Utilities ============ */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .stat-card .stat-value {
        font-size: 1.75rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}
