@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Ubuntu+Sans:ital,wght@0,100..800;1,100..800&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}
body{
    background-color: var(--bg);
}

:root {
    --main: #263238;
    --green: #82D198;
    --red: #DA413F;
    --orange: #FDC644;
    --text: #263238;
    --white:#ffffff;
    --bg:#F6F8F8;
    --border:#EAEBEC;
}

.main-container{
    width: 100vw;
    margin-bottom: 5rem;
}


.topbar{
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--main);
    color: var(--white);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding: 1.2rem;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

.topbar input[type="date"] {
    background: white;
    border: none;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.att-section {
    display: grid;
    grid-template-areas: 
      "item1 item2"
      "item3 item3";
    grid-template-columns: 1fr 1fr; 
    gap: 1rem;
    margin:2rem 1rem;
    font-weight: bolder;
}
  
.att-section div:nth-child(1) {
    grid-area: item1;
  }
  
.att-section div:nth-child(2) {
    grid-area: item2;
  }
  
.att-section div:nth-child(3) {
    grid-area: item3;
}

.att-section div {
    border-left: 4px solid var(--main);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    background-color:var(--white);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

#members, #on-site-count, #late-count, #absent-count{
  color: var(--text);
  font-size: 2rem;
  text-align: center;
}



#green{
    color: var(--green);
}
#red{
    color: var(--red);
}
#orange{
    color: var(--orange);
}

#on-site-card{
    border-left-color:var(--green);
}
#late-card{
    border-left-color:var(--orange);
}
#absent-card{
    border-left-color:var(--red);
    cursor: pointer;
}


.schedule {
    max-width: 100%;
    padding: 0px 20px;
    font-family: Arial, sans-serif;

}

/* Title */
.schedule h4 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Table Wrapper for scroll functionality */
.employee-table-wrapper {
    max-height: 600px; /* Set a height for the scroll */
    overflow-y: auto; /* Enable vertical scrolling */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Table styling */
.employee-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.employee-table th,
.employee-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

/* Table Header Styling */
.employee-table th {
    background-color: var(--main);
    color: white;
    font-size: 15px;
    font-weight: bold;
}

/* Table Row Styling */
.employee-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.employee-table tr:nth-child(odd) {
    background-color: #ffffff;
}

.employee-table tr:hover {
    background-color: #e9e9e9;
    cursor: pointer;
}

/* Start and End Time Button Styles */
button {
    padding: 6px 12px;
    font-size: 14px;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button.start-time {
    background-color: #28a745; /* Green for start time */
}

button.end-time {
    background-color: #dc3545; /* Red for end time */
}

button:hover {
    opacity: 0.8;
}

/* Bottom Navigation Bar Styling */



.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #2d353c; /* Dark background */
    padding: .5rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

/* Navigation Item Styling */
.nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Icon Container */
.icon-container {
    background-color: #eaeaea; 
    border-radius: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-container:hover {
    transform: scale(1.1); /* Slight zoom effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
}

/* Icon Styling */
.icon {
    width: 30px;
    height: 30px;
    filter: grayscale(40%); /* Optional: Slight desaturation */
}

/* Active Tab */
.nav-item.active .icon-container {
    background-color: var(--green); /* Highlight color for the active tab */
    filter: none; /* Ensure active icon is fully saturated */
}





.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.6); /* Semi-transparent white background */
    backdrop-filter: blur(10px); /* Apply blur effect to the background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner div{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}



.user-penalty-table-wrapper {
    max-height: 600px; /* Set a height for the scroll */
    overflow-y: auto; /* Enable vertical scrolling */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin:1rem;
}


.user-penalty-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

/* Table Header Styling */
.user-penalty-table th,
.user-penalty-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}


.user-penalty-table th {
    background-color: var(--main);
    color: white;
    font-size: 15px;
    font-weight: bold;
}

/* Table Row Styling */
.user-penalty-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.user-penalty-table tr:nth-child(odd) {
    background-color: #ffffff;
}

.user-penalty-table tr:hover {
    background-color: #e9e9e9;
    cursor: pointer;
}

.users-section{
    display: none;
}




.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dimmed background */
    backdrop-filter: blur(5px); /* Subtle blur effect */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px 30px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    position: relative;
}

.close {
    color: var(--red);
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--orange);
}

.modal-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--main);
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-item {
    background: var(--bg);
    border-left: 4px solid var(--main);
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 1em;
    color: var(--text);
}

.modal-item:nth-child(odd) {
    border-left-color: var(--green);
}

.modal-item:nth-child(even) {
    border-left-color: var(--orange);
}



#user-month{
    background-color: var(--white);
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

.download-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    padding: 20px;
}

.download-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.download-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.download-icon svg {
    width: 24px;
    height: 24px;
}

.download-icon:hover {
    transform: scale(1.1);
}




#admin-login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f4f7fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    margin: 100px auto;
    display: none;
}

/* Label styling */
#admin-login-form label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    
}

/* Input field styling */
#admin-login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

/* Input focus effect */
#admin-login-form input:focus {
    border-color: #0066cc;
}

/* Button styling */
#admin-login-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--green);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Button hover effect */
#admin-login-form button:hover {
    background-color: #005bb5;
}

/* Optional - Add a subtle animation for the form appearance */
#admin-login-form {
    animation: fadeIn 0.6s ease-in-out;
}

/* Keyframes for fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.alert-box {  
    position: fixed;  
    top: 50%;  
    left: 50%;  
    transform: translate(-50%, -50%);  
    background-color: #fff;  
    padding: 20px;  
    border-radius: 10px;  
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);  
    text-align: center;  
  }  
    
  .alert-box.error {  
    background-color: #f44336;  
    color: #fff;  
  }  
    
  .alert-box.success {  
    background-color: #4CAF50;  
    color: #fff;  
  }  
    
  .alert-box button {  
    background-color: #4CAF50;  
    color: #fff;  
    border: none;  
    padding: 10px 20px;  
    font-size: 16px;  
    cursor: pointer;  
  }  
    
  .alert-box button:hover {  
    background-color: #3e8e41;  
  }


  
  .settings-container {
    display: none;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.settings-header {
    margin-bottom: 20px;
    text-align: center;
}

.settings-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.settings-header p {
    font-size: 16px;
    color: #555;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group input[type="time"],
.input-group input[type="number"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;

}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--green);
}

input:checked + .slider:before {
    transform: translateX(18px);
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

.form-actions button {
    background-color: var(--green);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-actions button:hover {
   background-color: var(--main);
}

.form-actions button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


  .success-message {
    display: none;
    margin-top: 10px;
    font-size: 14px;
    color: #28a745;
    text-align: center;
  }

.exit{
    display: flex;
    justify-content: right;
    margin-bottom: 2rem;
}

.exit button{
    border: none;
    background-color: var(--red);
    border-radius: 12px solid;
    padding: 0.5rem;
    font-weight: bolder;
}



.tab-toggle-container{
    display: flex;
    align-items: center;
    margin: 1rem;
}

.tab-toggle-container div{
    display: flex;
    justify-content: center;
    align-items: center;
}

.tab-toggle-container label {
    margin: 0 10px;
    font-weight: bold;
    cursor: pointer;
}

.toggle-checkbox {
    width: 40px;
    height: 20px;
    appearance: none;
    background-color: #ccc;
    border-radius: 50px;
    position: relative;
    transition: background-color 0.3s;
    cursor: pointer;
}

.toggle-checkbox:checked {
    background-color: #4caf50;
}

.toggle-checkbox:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-checkbox:checked:before {
    transform: translateX(20px);
}

/* Hide tab content by default */
.tab-content {
    display: none;
}

/* Show the content of the active tab */
.tab-content.active {
    display: block;
}


#finance-section{
   display: none;
}
.center-finance {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-top: 30px;
    padding: 0 15px;
    margin-bottom: 10vh;
}

/* Form Container Style */
.form-container {
    flex: 1 1 100%;
    max-width: 800px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
}

.form-container .heading {
    font-size: 28px;
    color: var(--main);
    text-align: center;
    margin-bottom: 20px;
}

.form-container .form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-container .form-group {
    display: flex;
    flex-direction: column;
}

/* Labels Style */
.form-container label {
    font-weight: bold;
    color: var(--text);
    margin-bottom: 8px;
}

/* Input and Select Fields */
.form-container .input-field, .multi-select {
    padding: 14px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: var(--bg);
    color: var(--text);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-container .input-field:focus, .multi-select:focus {
    border-color: var(--green);
    background-color: var(--white);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

/* Multi-select Specific Styling */
.form-container .multi-select {
    height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Button Styling */
.form-container .submit-btn {
    background-color: var(--green);
    color: var(--white);
    padding: 12px 20px;
    font-size: 16px;
    text-align: center;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 150px;
    margin: 0 auto;
}

.form-container .submit-btn:hover {
    background-color: var(--hover-green);
}

.form-container .submit-btn:active {
    background-color: #2c6c33;
}

/* Toggle Button Styles */
.form-container .toggle {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 20px;
}

.form-container .toggle input {
    display: none;
}

.form-container .toggle .slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ccc;
    border-radius: 50px;
    transition: 0.4s;
}

.form-container .toggle input:checked + .slider {
    background-color: var(--green);
}

.form-container .toggle .slider:before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    transition: 0.4s;
}

.form-container .toggle input:checked + .slider:before {
    transform: translateX(20px);
}

.form-container .toggle span {
    font-size: 14px;
    color: var(--text);
    margin-left: 10px;
    vertical-align: middle;
}

/* Responsive Design for Small Screens */
@media (max-width: 768px) {
    .center-finance {
        flex-direction: column;
        align-items: center;
    }

    .form-container {
        width: 100%;
        padding: 15px;
    }

    .form-container .multi-select {
        height: 150px;
    }

    .form-container .submit-btn {
        width: 100%;
    }
}


.avto-toggle{
    margin: 1rem;
}




.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 days in a week */
    gap: 5px;
    margin-top: 10px;
}

.days-grid button {
    padding: 10px;
    font-size: 16px;
    font-weight: bolder;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: var(--main);
    cursor: pointer;
}

.days-grid button.selected {
    background-color: #4caf50;
    color: white;
    border-color: #4caf50;
}

.days-grid button.sunday {
    color: red; /* Sundays appear in red */
}

.days-grid button.empty {
    visibility: hidden; /* Empty days are hidden */
}



.month-selector {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.modern-dropdown {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modern-dropdown:hover {
    border-color: #555;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.modern-dropdown:focus {
    border-color: #007BFF;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
    outline: none;
}

#download_side{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}


#absent-modal .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #000;
    cursor: pointer;
    font-weight: bold;
}


#absent-modal  .modal-content h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

#absent-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

#absent-list li {
    margin: 5px 0;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 1em;
    color: #555;
}

#absent-list li:last-child {
    border-bottom: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.table-container {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
}

#abent-table {
    width: 100%;
    /* border-collapse: collapse; */
    font-size: 16px;
    text-align: left;
}

#abent-table thead {
    position: sticky;
    top: 0;
    background-color: var(--main);
    color: white;
    z-index: 1;
}

#abent-table th, #abent-table td {
    padding: 10px 15px;
    border: 1px solid #ddd;
}

#abent-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

#abent-table tbody tr:nth-child(even) {
    background-color: #e9ecef;
}

#abent-table tbody tr:hover {
    background-color: #f1f1f1;
}



