/* ========================= General Styles ========================= */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #DEE6EF;
}

.header {
    background-color: #0455A3;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header h1 {
    margin: 0;
    font-size: 20px;
    flex: 1;
}

.header a {
    color: white;
    text-decoration: none;
}

.header h1 a {
    display: flex;
    align-items: center;
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* Updated navigation styles */
.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.container {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px;
}

.footer {
    text-align: center;
}

/* ========================= Mobile Responsive Styles ========================= */

@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
    }

    .header h1 {
        font-size: 18px;
    }

    .header h1 img {
        width: 1em !important;
        padding: 6px !important;
        margin-right: 8px !important;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #0455A3;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255,255,255,0.2);
        z-index: 999;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        box-sizing: border-box;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    /* Mobile dropdown adjustments */
    .dropdown {
        width: 100%;
    }

    .dropdown > a {
        width: 100%;
        display: block;
        position: relative;
    }

    .dropdown > a:after {
        content: '▼';
        position: absolute;
        right: 20px;
        font-size: 12px;
        transition: transform 0.3s;
    }

    .dropdown.active > a:after {
        transform: rotate(180deg);
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background-color: rgba(255,255,255,0.1);
        border: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        color: white !important;
        padding: 12px 40px;
        background-color: transparent;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .dropdown-content a:hover {
        background-color: rgba(255,255,255,0.1) !important;
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    /* Ensure dropdowns don't interfere with desktop hover */
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
    }

    .header h1 {
        font-size: 16px;
    }

    .header h1 img {
        width: 0.9em !important;
        padding: 4px !important;
        margin-right: 6px !important;
    }

    .nav a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .dropdown-content a {
        padding: 10px 30px;
        font-size: 14px;
    }
}

/* Ensure container and other content don't overlap with mobile menu */
@media (max-width: 768px) {
    .container {
        margin-top: 10px;
    }
}

/* ========================= Login Styles ========================= */

.body-login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 350px;
}

.login-container a {
    background-color: #006FE5;
    color: white;
    text-decoration: none;
    justify-content: center;
    display: flex;
    border: none;
    border-radius: 4px;
    padding: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.login-container a:hover {
    background-color: #0052a3;
}

.login-container h1 {
    text-align: center;
    color: #0455A3;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-login {
    background-color: #0455A3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.btn-login:hover {
    background-color: #012e5c;
}

.error-message {
    color: #cc0000;
    margin-bottom: 15px;
    text-align: center;
}

/* ========================= Index Page Styles ========================= */

/* VV everything inside the container VV*/

.employee-stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.employee-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.stat-item {
    font-weight: bold;
    margin-right: 20px;
}

.stat-item-loc{
    font-weight: bold;
    margin-right: 0px;
}

.location-filter {
    display: flex;
    align-items: right;
    gap: 5px;
}

.location-filter select {
    padding: 5px;
}

/* Styles in table */

.table-style {
    width: 100%;
    border-collapse: collapse;
}

.table-head-style {
    background-color: #DEE6EF;
}

.table-head-style th {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table-body-style tr:hover {
    background-color:rgb(219, 237, 252);
}

.table-body-style td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table-body-nonselectable td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Pagination */

/* ========================= Pagination Styles ========================= */

.pagination {
    display: flex;
    justify-content: center;  /* Center the pagination container */
    align-items: center;      /* Align pagination items vertically */
    flex-wrap: wrap;          /* Allow items to wrap if they overflow */
    gap: 10px;                 /* Add space between page numbers */
    margin-top: 30px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.pagination a {
    padding: 8px 14px;
    text-decoration: none;
    color: #0455A3;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
    background-color: #f1f1f1;
    color: #012e5c;
}

.pagination .active {
    background-color: #0455A3;
    color: white;
    border: 1px solid #0455A3;
}

.pagination a[disabled] {
    color: #ccc;
    pointer-events: none;
    background-color: #f5f5f5;
}

.pagination a[aria-label="Previous"],
.pagination a[aria-label="Next"] {
    padding: 8px 15px;
    font-size: 16px;
    background-color: #f1f1f1;
    border-radius: 50%;
}

.pagination a[aria-label="Previous"]:hover,
.pagination a[aria-label="Next"]:hover {
    background-color: #dee2e6;
}

/* ========================= Pagination Responsiveness ========================= */

/* Responsive styles for pagination options on smaller screens */
@media (max-width: 768px) {
    .pagination-options {
        flex-direction: column; /* Stack pagination options vertically on small screens */
        gap: 12px;
    }
    
    .pagination-options select {
        font-size: 16px;
        padding: 10px 14px;
    }

    .pagination {
        flex-direction: column;  /* Stack pagination items vertically */
        gap: 12px;
    }
    
    .pagination a {
        font-size: 16px;
        padding: 12px 20px;
    }
}

/* ========================= Index Overlay Styles ========================= */

.overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.overlay-content {
    position: absolute;
    top: 0;
    right: -100%; /* Start off-screen */
    width: fit_content;
    min-width: 30%;
    height: 95%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
}

.overlay-content.active {
    right: 0;
}

.overlay-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #DEE6EF;
    padding-bottom: 10px;
}

.header-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 10px;
}

.overlay-header img {
    margin-top: 10px;
    margin-bottom: 20px;
    width: 50%;
    height: auto;
    align-self: center;
}

.overlay-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.employee-detail {
    margin-bottom: 12px;
}

.detail-label {
    font-weight: bold;
}

.table-body-style tr {
    cursor: pointer;
}

/* Overlay header with edit button */
.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #DEE6EF;
    padding-bottom: 10px;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-edit {
    background-color: #0455A3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 500;
}

.btn-edit:hover {
    background-color: #012e5c;
}

/* Form styles for edit mode */
#employeeEditForm .form-group {
    margin-bottom: 15px;
}

#employeeEditForm label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

#employeeEditForm input[type="text"],
#employeeEditForm input[type="date"],
#employeeEditForm input[type="email"],
#employeeEditForm select,
#employeeEditForm textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#employeeEditForm textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel {
    background-color: #f2f2f2;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 500;
}

.btn-cancel:hover {
    background-color: #e6e6e6;
}

/* Success and error messages */
.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* contract management styles */

.contract-entry {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.contract-entry.existing-contract {
    background: #f0f8ff;
    border-color: #4a90e2;
}

.contract-entry.new-contract {
    background: #f0fff0;
    border-color: #28a745;
}

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.contract-title {
    font-weight: bold;
    color: #2c3e50;
}

.contract-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contract-field {
    display: flex;
    flex-direction: column;
}

.remove-contract-btn:hover {
    background: #c0392b !important;
}

.delete-recent-contract-btn:hover {
    background: #c82333 !important;
}

.delete-recent-contract-btn {
    transition: background-color 0.2s ease;
}

@media (max-width: 768px) {
    .contract-fields {
        grid-template-columns: 1fr;
    }
}

/* ========================= Scheduling Styles ========================= */

.schedule-info-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
}

.schedule-info {
    flex-grow: 1;
    margin-right: 20px;
}

.schedule-info-text {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none;
    margin-top: 5px;
}

.schedule-action {
    display: flex;
    align-items: flex-end;
}

.btn-scheduling {
    background-color: #0455A3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    width: 100px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin-left: auto;
    margin-right: 0
}

.btn-scheduling:hover {
    background-color: #012e5c;
}

select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-left: 5px;
}

/* 2x2 Layout for schedule filters */
.schedule-filters {
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.filter-group {
    width: 48%; /* Slightly less than 50% to allow some spacing */
}

.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filter-group label {
    font-weight: bold;
}

/* ========================= Attendance Page Styles ========================= */

/* Form Styles */
.attendance-form {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group2 {
    flex: 1;
}

.form-group2 label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group2 select,
.form-group2 input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.dropdown-input {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.checkbox-container {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
    transform: scale(1.1);
}

.checkbox-label span {
    user-select: none;
}

.button-row {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 5px;
}

.btn-view {
    background-color: #0455A3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
}

.btn-view:hover {
    background-color: #012e5c;
}

/* Summary Stats */
.attendance-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item {
    font-weight: bold;
}

/* Legend Styles */
.attendance-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 15px;
    height: 15px;
    border: 1px solid #ccc;
}

.gray { background-color: #ccc; }
.white { background-color: white; border: 1px solid #ddd; }
/* .green { background-color: #8fffb6; } */
.green {background-color: #7aca2e; }
.yellow { background-color: #ffff00; }
.orange { background-color: #fd7e14; }
.red { background-color: #ff5555; }
.lightblue { background-color: #9edfff; }
.cream { background-color: #ECD69F; }
.purple { background-color: #cc66ff; }
.pink {background-color:rgb(255, 140, 203);}
.pink_late {background-color:rgb(255, 140, 203);}

/* Calendar Styles */
.attendance-calendar {
    overflow-x: auto;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar-table th,
.calendar-table td {
    border: 1px solid #ddd;
    text-align: center;
    padding: 10px;
    width: 14.28%;
}

.calendar-table th {
    background-color: #DEE6EF;
    font-weight: bold;
}

.calendar-table .sunday,
.calendar-table .saturday {
    color: #ff0000;
}

.attendance-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.attendance-popup {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.popup-header {
    padding: 15px 20px;
    font-weight: bold;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    color: white;
    text-align: center;
    position: relative;
}

.popup-header.present { background-color:rgb(255, 255, 255); color: #000; }
.popup-header.late { background-color: #7aca2e; }
.popup-header.early-leave { background-color:rgb(255, 140, 203); }
.popup-header.pink-late { background-color:rgb(255, 140, 203); }
.popup-header.absent { background-color: #fd7e14; }
.popup-header.permission { background-color: #9edfff; }
.popup-header.vacation { background-color: #ffc107; color: #000; }
.popup-header.weekend { background-color: #dc3545; }
.popup-header.before-hired { background-color: #dc3545; }
.popup-header.future { background-color: #f8f9fa; color: #000; }

.popup-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.popup-body p {
    margin: 8px 0;
    color: #555;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.popup-close:hover {
    opacity: 0.7;
    background-color: rgba(255, 255, 255, 0.2);
}

.tag-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.tag-section h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.color-option {
    display: flex;
    align-items: center;
    padding: 8px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.color-option:hover {
    border-color: #007bff;
}

.color-option.selected {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.color-option input[type="radio"] {
    margin-right: 8px;
}

.color-preview {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.color-preview.green { background-color: #7aca2e; }
.color-preview.yellow { background-color: #ffff00; }
.color-preview.orange { background-color: #fd7e14; }
.color-preview.red { background-color: #dc3545; }
.color-preview.lightblue { background-color: #9edfff; }
/* .color-preview.purple { background-color: #6f42c1; } */
.color-preview.pink { background-color:rgb(255, 140, 203); }
.color-preview.pink_late { background-color:rgb(255, 140, 203); }

.detail-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    resize: vertical;
    font-family: inherit;
}

.popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.popup-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-save {
    background-color: #007bff;
    color: white;
}

.btn-save:hover {
    background-color: #0056b3;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background-color: #545b62;
}

.current-tag {
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.current-tag strong {
    color: #495057;
}

.popup-header.future .popup-close,
.popup-header.late .popup-close {
    color: #333;
}

.popup-header.future .popup-close:hover,
.popup-header.late .popup-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Calendar cell hover effect */
.calendar-table td:not(.gray):hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 10;
    position: relative;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive design for smaller screens */
@media (max-width: 480px) {
    .attendance-popup {
        min-width: 280px;
        margin: 20px;
    }
    
    .popup-header {
        padding: 15px;
        font-size: 16px;
    }
    
    .popup-body {
        padding: 15px;
        font-size: 13px;
    }
}

/* new Izin from attendance page */

.izin-type-popup {
    z-index: 10001; /* Higher than main popup */
}

.izin-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.izin-type-option {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.izin-type-option:hover {
    border-color: #87ceeb;
    background-color: #f0f8ff;
}

.izin-type-option.selected {
    border-color: #87ceeb;
    background-color: #e6f3ff;
}

.izin-type-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.izin-type-text {
    flex: 1;
    line-height: 1.4;
}

.izin-type-text strong {
    color: #333;
    font-size: 14px;
}

.izin-type-text small {
    color: #666;
    font-size: 12px;
    font-style: italic;
}

/* ========================= Registration Page Styles ========================= */

.invis-button {
    background-color: transparent;
    cursor: pointer;
    border: none !important;
    font-size: 18px;
}

/* ========================= Header Styles ========================= */

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    top: 100%;
    left: 0;
    border: 1px solid #ddd;
}

.dropdown-content a {
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Warning notification styles */
.warning-notification {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 12px 20px;
    margin: 10px 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease-out;
}

.warning-notification.hidden {
    display: none;
}

.warning-notification-content {
    flex: 1;
    margin-right: 15px;
}

.warning-notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #856404;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.warning-notification-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .warning-notification {
        margin: 10px;
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* ============================= Holiday Management Styles ============================= */
.holiday-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.holiday-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4em;
}

.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 500;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.btn-add {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-add:hover {
    background-color: #218838;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.btn-delete:hover {
    background-color: #c82333;
}

/* Other */

.incomplete-name:hover {
    color: #0052a3 !important;
    text-decoration: underline !important;
}
