body, 
button, 
input, 
select, 
textarea, 
.h1, .h2, .h3, .h4, .h5, .h6, 
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif !important;
}

/* Optional: Make the text slightly sharper for HRMS readability */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01rem;
}

/* Make headers pop a bit more */
h1, h2, h3, h4, h5, h6, .fw-bold {
    font-weight: 600;
}

body {
    background: #f8f9fa;
}

.login-box {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

.nav-link { 
    color: black!important;
    border: 1px solid grey;
    margin-right: 5px;
    border-radius: 5px;
    padding: 5px 0px; 
}

:root {
    --wa-green: #25D366;
    --wa-dark-green: #075e54;
}

/* Updated Dashboard Card Styles */
.card-stats {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    background: #fff;
}

.stat-value { font-size: 1.5rem; font-weight: 700; color: #333; }
.stat-label { font-size: 0.7rem; text-transform: uppercase; color: #777; font-weight: 600; }

.night-moon {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.7rem;
}

/* Quick Action Buttons */
.btn-quick-action {
    background: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
    text-decoration: none !important;
    display: block;
    color: #333;
    transition: 0.2s;
}
.btn-quick-action:active { background: #f0f2f5; transform: scale(0.98); }
.btn-quick-action i { font-size: 1.8rem; display: block; margin-bottom: 5px; }

/* Language Switcher Float */
.lang-switcher {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    background: #fff;
    padding: 4px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
}
.lang-btn {
    border-radius: 50px;
    padding: 6px 16px;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    background: transparent;
}
.lang-btn.active { background: var(--wa-dark-green); color: #fff; }

.salary-card-dark {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
    color: white;
    border-radius: 15px;
}


/* attendence view */

/* Circular Profile Image */
.profile-img-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Smart Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}


/* Enhanced Calendar for Mobile */
.calendar-day {
    min-height: 60px !important; /* Overriding your 100px for mobile ergonomics */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px !important;
    font-size: 0.9rem;
}

.calendar-day {
    background: #fff;
    transition: transform 0.2s;
}

.calendar-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.calendar-day.sunday { background-color: #f8f9fa; }

.day-present { background-color: #dcf8c6 !important; border-color: #c5e1a5 !important; }
.day-absent { background-color: #ffebee !important; border-color: #ffcdd2 !important; }
.day-holiday { background-color: #fff3cd !important; border-color: #ffe082 !important; }

.day-status-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Financial Cards in Popup */
.finance-card {
    border-left: 4px solid #0d6efd;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.balance-red { color: #dc3545; font-weight: bold; }
.balance-green { color: #198754; font-weight: bold; }

/* Interactive Table Name */
.employee-link {
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}
.employee-link:hover {
    text-decoration: underline;
}

.a4-sheet {
    width: 210mm;
    min-height: 297mm;
    padding: 15mm;
    margin: auto;
    background: white;
    box-sizing: border-box;
}

/* Print clean */
@media print {
    body * {
        visibility: hidden;
    }
    .a4-sheet, .a4-sheet * {
        visibility: visible;
    }
    .a4-sheet {
        position: absolute;
        left: 0;
        top: 0;
    }
}