/* GENERAL */
#gradleft {
  background-image: linear-gradient(to left,black, #800000 , orange);
}
#gradright {
  background-image: linear-gradient(to right,black, #800000 , orange);
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f6fa;
}

/* HEADER */
.top-header {
    background: #ffffff;
    color: #FF98C9;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
gap: 15px;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
}
.nav-menu a:hover {
    color: #000000;
    text-decoration: underline;
    font-size: 16px;
}
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* FOOTER */
.main-footer {
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
}
.main-footer a {
    color: #ffffff;
    text-decoration: none;
}
.main-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* CONTENT */
.content {
    padding: 20px;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

/* Mobile & Tablet */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        background: #34495e;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        border-radius: 4px;
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 12px 20px;
        border-bottom: 1px solid #368712;
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }
}
/* FORM CONTAINER */
.form-container {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.form-container h2 {
    margin-bottom: 20px;
    color: #368712;
    text-align: center;
}

/* FORM GROUP */
.hris-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.hris-form label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.hris-form input,
.hris-form select {
    padding: 12px;
    border: 1px solid #ccd1d9;
    border-radius: 5px;
    font-size: 15px;
    transition: 0.2s ease;
}

.hris-form input:focus,
.hris-form select:focus {
    border-color: #800000;
    outline: none;
}

/* SUBMIT BUTTON */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: #800000;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.submit-btn:hover {
    background: #800000;
}

/* PRODUCT PAGE BUTTONS */
.d-flex.mb-3 .btn:first-child {
    margin-right: 60px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .hris-logo {
        height: 36px;   /* Slightly smaller */
    }

    .logo-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 20px;
    }

    .hris-form input,
    .hris-form select {
        font-size: 14px;
    }
	 .hris-logo {
        height: 30px;   /* More compact */
    }

    .logo-text {
        font-size: 16px;
    }
}

/* HEADER LEFT (logo + text) */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* RESPONSIVE LOGO */
.hris-logo {
    height: 110px;   /* Default desktop size */
    width: auto;    /* Maintains proportions */
    object-fit: contain;
}

/* Adjust text next to logo */
.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: white;
}
.page-title h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #368712;
}

/* Actions area */
.table-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.table-actions input,
.table-actions select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccd1d9;
    font-size: 14px;
}

/* Table container */
.table-wrapper {
    overflow-x: auto;
}

/* Table styling */
#employeeTable {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

#employeeTable thead {
    background: #800000;
    color: white;
}

#employeeTable th,
#employeeTable td {
    padding: 12px;
    border-bottom: 1px solid #ecf0f1;
    text-align: left;
}

#employeeTable th {
    cursor: pointer;
    user-select: none;
}

#employeeTable tr:hover {
    background: #f2f6fa;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 15px;
}

.pagination button {
    padding: 8px 12px;
    margin: 3px;
    border: none;
    background: #368712;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button.active {
    background: #1a252f;
}

/* Mobile style */
@media (max-width: 480px) {
    #employeeTable th,
    #employeeTable td {
        font-size: 14px;
        padding: 10px;
    }

    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
/* DASHBOARD CONTAINER */
.dashboard-container {
    padding: 20px;
}

.dashboard-title {
    text-align: center;
    margin-bottom: 25px;
    color: #368712;
}

/* ===== STAT CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.2s ease;
    border-left: 5px solid #368712;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.stat-card h3 {
    margin: 0;
    font-size: 16px;
    color: #555;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #368712;
    margin-top: 10px;
}

/* ===== DASHBOARD TABLE ===== */
.dashboard-section {
    margin-top: 30px;
}

.section-title {
    color: #368712;
    margin-bottom: 15px;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.dash-table th {
    background: #368712;
    color: white;
    padding: 12px;
}

.dash-table td {
    padding: 12px;
    border-bottom: 1px solid #ecf0f1;
}

.dash-table tr:hover {
    background: #f5f7fa;
}

/* ===== RESPONSIVE DASHBOARD ===== */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 26px;
    }

    .dashboard-container {
        padding: 10px;
    }
}
/* USER PROFILE ON TOP RIGHT */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 15px;
}

/* Avatar circle */
.user-avatar {
    height: 38px;
    width: 38px;
    background: #ffffff33;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    overflow: hidden;
}

.user-avatar img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Dropdown menu */
.user-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    width: 160px;
    z-index: 999;
}

.user-menu.active {
    display: flex;
}

.user-menu a {
    padding: 12px;
    color: #368712;
    text-decoration: none;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

.user-menu a:last-child {
    border-bottom: none;
}

.user-menu a:hover {
    background: #f5f6fa;
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
    .user-avatar {
        height: 34px;
        width: 34px;
    }
}

@media (max-width: 480px) {
    .user-avatar {
        height: 30px;
        width: 30px;
    }
    .user-menu {
        width: 140px;
    }
}
.table-actions label {
    font-size: 14px;
    color: #368712;
    margin-left: 10px;
}

.table-actions select {
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccd1d9;
}