/* General Styles */
html {
    zoom: 0.9;
}
@media (max-width: 768px) {
    html {
        zoom: 1;
    }
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 14px; /* Reduced scale */
}
.popup-alert {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    padding-left: 60px;
    padding-right: 60px;
    background-color: #575757;
    color: white;
    border: 1px solid #de8519;
    border-radius: 5px;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.popup-alert.success {
    background-color: #575757;
    /* border-color: #f0f0f0; */
}

.popup-alert button {
    margin-top: 5px;
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #de8519;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    /* margin-top: 50px; */
    margin-left: 300px;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 10px;
    width: 40%;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-height: 70%;
    overflow-y: auto;
}

.close-btn {
    float: right;
    font-size: 20px;
    cursor: pointer;
}
.hours-edit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hours-edit input[type="text"] {
    width: 40px !important;
    min-width: 0;
    max-width: 60px;
    text-align: center;
    padding: 4px 0;
    font-size: 1em;
    margin: 0 2px;
}
.form-group {
    margin-bottom: 10px;
}

input, select {
    width: 90%;
    min-width: 150px;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-save, .btn-delete {
    background-color: #de8519;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
}

.btn-delete {
    background-color: #f44336;
}

.countdown-timer {
    text-align: center;
    font-size: 1.2em;
    margin: 5px 0;
}

.calendar {
    max-width: 90%;
    width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 10px;
}

.calendar-weekdays, .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}

.calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    margin: 3px;
}

.calendar-header {
    display: flex
;
    justify-content: space-between;
    align-items: center;
    max-width: 700px;
    margin: 10px auto;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calendar-header .prev-btn,
.calendar-header .next-btn {
    background-color: #de8519;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.calendar-header .prev-btn:hover,
.calendar-header .next-btn:hover {
    background-color: #6f4a01;
}

.calendar-header .title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.calendar-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #de8519;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
    text-align: center;
    margin: 5px;
}

.calendar-link:hover {
    background-color: #6f4a01;
}

.calendar-day:hover {
    transform: scale(1.05);
    background-color: #e0e0e0;
}

.calendar-day.work-log-exists {
    background-color: #76d579;
    color: white;
}

.calendar-day.no-work-log {
    background-color: #e0e0e0;
    color: rgb(0, 0, 0);
}

.calendar-day.empty {
    background-color: transparent;
    box-shadow: none;
    cursor: default;
}

.calendar-day.disabled {
    background-color: #d3d3d3;
    color: #a9a9a9;
    cursor: not-allowed;
}

.calendar-day.missed-log {
    background-color: grey;
    color: white;
}

.calendar-day.upcoming-log {
    background-color: white;
    color: black;
}
.calendar-day.holiday-log {
    background-color: #d3d3d3;
    color: #a9a9a9;
    cursor: not-allowed;
}
html {
    scroll-padding-top: 120px; /* match your navbar height */
  }

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-left h2 {
    margin: 0;
    font-size: 1.5em;
}

.nav-center h2 {
    margin: 0;
    font-size: 1.5em;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-right a {
    background-color: #de8519;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 5px;
    margin-right: 20px;
    transition: background-color 0.2s;
}

.nav-right a:hover {
    background-color: #6f4a01;
}

/* Sidebar */
.main-content {
    display: flex;
    flex: 1;
    margin-top: 60px;
    margin-bottom: 200px;
    top:10%;
    /* margin-left: 400px; */
    
}

.sidebar {
    width: 250px;
    background-color: #333;
    color: white;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 60px;
    bottom: 0;
    background-color: #575757;
    overflow-y: auto;
    transition: width 0.3s, left 0.3s;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    font-size: 18px;
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #de8519;
    color: white;
}

.sidebar ul li a.active {
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.nav-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 10px;
}

.nav-center {
    flex: 1;
    text-align: center;
    transition: margin-right 0.3s;
}

.nav-right a {
    background-color: #de8519;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 5px;
    transition: background-color 0.2s;
}

.nav-right a:hover {
    background-color: #6f4a01;
}

/* Content */
.content {
    flex: 1;
    padding: 10px;
    /* margin-left: 200px; */
    overflow-y: auto;
}

/* Forms */
.form {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    height: 80px;
    resize: vertical;
}

button {
    background-color: #de8519;
    color: white;
    padding: 8px 16px;
    margin: 5px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #6f4a01;
}

/* Hours Input */
.hours-input {
    display: flex;
    align-items: center;
}

.hours-input input {
    width: 10px;
    text-align: center;
    margin: 0 3px;
}

.btn-hours {
    background-color: #de8519;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 3px;
    width: 50px;
    height: 30px;
}

.btn-hours:hover {
    background-color: #6f4a01;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f8f8;
    font-weight: bold;
    color: #333;
}

/* Alerts */
.alert {
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 4px;
    /* background-color: #f44336; */
    color: white;
}
.alert.error {
    
    background-color: #f44336;
}
.alert.success {
    background-color: #4CAF50;
}

/* Buttons */
.logout-btn {
    background-color: #95a3acfd;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
}

.logout-btn:hover {
    background-color: #da190b;
}

.btn-approve {
    background-color: #4CAF50;
    margin-right: 3px;
}

.btn-reject {
    background-color: #f44336;
}

.btn-delete, .btn-cancel, .btn-edit {
    background-color: #95a3acfd;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-delete:hover {
    background-color: #da190b;
}

/* Admin Sections */
.admin-section {
    background-color: white;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.formClass{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
/* Work Log Form */
.work-log-form {
    background-color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Inline Forms */
.inline-form {
    display: inline;
}

/* Profile Page */
.profile-container {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.profile-details p {
    margin: 5px 0;
}

.assigned-projects {
    list-style-type: none;
    padding: 0;
}

.assigned-projects li {
    background-color: #f8f8f8;
    padding: 8px;
    margin: 3px 0;
    border-radius: 4px;
}

.btn-release {
    background-color: #95a3acfd;
    color: white;
}

.btn-release:hover {
    background-color: #362222;
}

.form-control {
    width: 20%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
}

.change-password-form {
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.change-password-form .form-group {
    margin-bottom: 10px;
}

.change-password-form label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.change-password-form input[type="password"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.change-password-form button {
    background-color: #de8519;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.change-password-form button:hover {
    background-color: #6f4a01;
}

/* Card */
.card {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    /* overflow: scroll; */
}

.btn-view-more {
    margin: 10px 0 20px 0;
    background-color: #de8519;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

/* Popup Styles */
.popup {
    display: none;
    /* position: fixed; */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.popup-content button {
    background-color: #de8519;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
}

.popup-content button:hover {
    background-color: #6f4a01;
}

/* Form Group Container */
.form-group-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Status Dots */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    background-color: #00C853;
    border: 2px solid #00C853;
    box-shadow: 0 0 8px #00C853;
}

.status-in-progress {
    background-color: #FF9100 ;
    border: 2px solid #FF9100;
    box-shadow: 0 0 8px #FF9100;
}
.status-inactive {
    background-color: #BDBDBD;
    border: 2px solid #BDBDBD;
    box-shadow: 0 0 8px #BDBDBD;
}

/* .status-inactive {
    background-color: red;
    border: 2px solid red;
    box-shadow: 0 0 8px red;
} */

.status-completed {
    background-color: #2962FF ;
    border: 2px solid #2962FF;
    box-shadow: 0 0 8px #2962FF;
}

.status-resigned {
    background-color: red;
    border: 2px solid red;
    box-shadow: 0 0 8px red;
}
.status-resign {
    background-color: red;
    border: 2px solid red;
    box-shadow: 0 0 8px red;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.container.dark-mode {
    background-color: #1e1e1e;
}

.modal-content.dark-mode {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.form.dark-mode,
.card.dark-mode,
.admin-section.dark-mode,
.work-log-form.dark-mode,
.profile-container.dark-mode,
.change-password-form.dark-mode,
.popup-content.dark-mode {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

input.dark-mode,
select.dark-mode,
textarea.dark-mode {
    background-color: #3c3c3c;
    color: #e0e0e0;
    border: 1px solid #555;
}

button.dark-mode,
.btn-save.dark-mode,
.btn-delete.dark-mode,
.btn-approve.dark-mode,
.btn-reject.dark-mode,
.btn-hours.dark-mode,
.logout-btn.dark-mode,
.calendar-link.dark-mode,
.popup-content button.dark-mode {
    background-color: #444;
    color: #e0e0e0;
}

button.dark-mode:hover,
.btn-save.dark-mode:hover,
.btn-delete.dark-mode:hover,
.btn-approve.dark-mode:hover,
.btn-reject.dark-mode:hover,
.btn-hours.dark-mode:hover,
.logout-btn.dark-mode:hover,
.calendar-link.dark-mode:hover,
.popup-content button.dark-mode:hover {
    background-color: #666;
}

.sidebar.dark-mode {
    background-color: #333;
}

.sidebar ul li a.dark-mode {
    color: #e0e0e0;
}

.sidebar ul li a.dark-mode:hover {
    background-color: #555;
}

table.dark-mode {
    background-color: #2c2c2c;
}

th.dark-mode {
    background-color: #3c3c3c;
    color: #e0e0e0;
}

td.dark-mode {
    border-bottom: 1px solid #555;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #444;
    color: #e0e0e0;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1001;
}

.dark-mode-toggle:hover {
    background-color: #666;
}


/* Super Admin Dashboard */
#superadmin-section-manage-user, #superadmin-section-manage-work-log {
    background-color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: scroll;
}

#superadmin-section-logs{
    background-color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: scroll;
}
#enable-scroll{
    background-color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: scroll;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
}

.login-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
}

.login-card-left {
    flex: 1;
    background-color: #f0f0f0;
    padding-top: 200px;
    /* height: 400px; */
}

.login-card-left img {
    width: 100%;
    height: 50%;
    object-fit: cover;
}

.login-card-right {
    flex: 1;
    padding: 40px;
    text-align: center;
    max-width: 92%;
}

.login-card-right h1 {
    margin-bottom: 10px;
    color: #333;
}

.login-card-right h2 {
    margin-bottom: 20px;
    color: #666;
}

.login-card-right .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.login-card-right label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.login-card-right input[type="text"],
.login-card-right input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.login-card-right button {
    width: 30%;
    padding: 10px;
    background-color: #de8519;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    font-weight: bold;
}

.login-card-right button:hover {
    background-color: #6f4a01;
    transform: scale(1.05);
}

.login-card-right .alert {
    margin-top: 20px;
    padding: 10px;
    background-color: #f44336;
    color: white;
    border-radius: 5px;
}

.form-actions{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    
}

.left-margin-content {
    margin-left: 0;
    text-align: left;
}
#estimated_time_file_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* color: #333; */
}

#estimated_cost_file_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* color: #333; */
}

/* File List Styles */
.file-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 5px 0; */
}

.file-item a {
    flex-grow: 1;
    /* text-decoration: none; */
    color: #333;
}

.file-item .btn-delete {
    background-color: #95a3acfd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px 10px;
    margin-left: 10px;
}

.file-item .btn-delete:hover {
    background-color: #d32f2f;
}

/* Mobile View */
@media (max-width: 768px) {
    .container {
        margin: 0 auto;
        padding: 10px;
        margin-top: 60px;
        margin-left: 0;
    }

    .modal-content {
        background-color: #fff;
        margin: 25% auto;
        padding: 10px;
        width: 40%;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        max-height: 70%;
        overflow-y: auto;
    }

    .sidebar {
        width: 70%;
        left: -100%;
        height: 100%;
        background-color: #333;
        padding: 10px;
        box-shadow: none;
        transition: left 0.3s;
        z-index: 999;
    }

    .login-card-left {
        flex: 1;
        background-color: #f0f0f0;
        padding-top: 50px;
        /* height: 400px; */
    }

    h1, h2 {
        font-size: 1.2em;
    }
    .sidebar ul li a {
        font-size: 16px;
        padding: 8px;
    }

    .main-content {
        flex-direction: column;
        margin-top: 0;
    }

    .nav-center {
        display: none;
    }

    .nav-right {
        display: none;
    }

    .calendar {
        width: 100%;
    }


    .calendar-day {
        width: 50%;
        padding: 5px;
    }

    .form-group {
        width: 100%;
    }

    input, select, textarea {
        width: 95%;
    }

    .formClass {
        display: block;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions button {
        width: 100%;
        margin: 5px 0;
    }

    .login-card {
        flex-direction: column;
    }

    .login-card-left, .login-card-right {
        width: 100%;
    }

    .login-card-left img {
        height: auto;
    }

    .login-card-right {
        padding: 20px;
    }

    .btn-hours {
        padding: 5px;
    }

    .hours-input input {
        width: 30px;
    }

    .card {
        padding: 10px;
    }

    .popup-content {
        width: 90%;
    }

    .modal-content {
        width: 90%;
    }

    .table {
        width: 100%;
        overflow-x: auto;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        padding: 10px;
        background-color: #333;
        color: white;
        border: none;
        border-radius: 4px;
        margin-right: 10px;
    }

    .hamburger div {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 4px 0;
    }

    .sidebar.open {
        left: 0;
    }

    .card {
        /* padding: 10px; */
        overflow: scroll;
    }

}

/* Hide hamburger button on larger screens */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}


.calendar-days {
    min-height: 240px; /* Adjust based on actual height of a full month grid */
    transition: opacity 0.2s ease;
    opacity: 1;
}

.calendar-days.loading {
    opacity: 0.3;
    pointer-events: none;
}
