@font-face {
  font-family: 'WetchaQolandRegular';
  src: url('../fonts/Biome_W01_Regular.woff2') format('woff2');
}

.maintainance{
    width: 100vw;
    height: 100vh;
    position: absolute;
    z-index: 999;
    background-color: #333333;
    color: #C4DA5C;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}
.btn:disabled{
    opacity: 0.2 !important;
}
body {
    font-family: 'WetchaQolandRegular', sans-serif;
    background-color: #ffffff;
    color: #333333;
    font-size: 0.9rem;
    scroll-behavior: smooth;
}

.navbar {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(245, 114, 81, 0.2);
}


.navbar-brand, .nav-link {
    color: #C4DA5C !important;
}

.nav-link:hover {
    color: #e55a3a !important;
}

.btn-primary {
    background-color: #C4DA5C;
    border-color: #C4DA5C;
    color: #000000;
    transition: all 0.2s ease;
    box-shadow: 0 0 5px rgba(245, 114, 81, 0.5);
}

.btn-primary:hover {
    background-color: #e55a3a;
    border-color: #e55a3a;
    box-shadow: 0 0 10px rgba(245, 114, 81, 0.7);
}

.btn-secondary {
    background-color: #e9ecef;
    border-color: #C4DA5C;
    color: #333333;
    transition: opacity 0.2s ease;
}

.btn-secondary:hover {
    opacity: 0.9;
    box-shadow: 0 0 5px rgba(245, 114, 81, 0.5);
}

.btn-success { background-color: #28a745; border-color: #28a745; color: #ffffff; }
.btn-warning { background-color: #ffc107; border-color: #ffc107; color: #333333; }
.btn-danger { background-color: #dc3545; border-color: #dc3545; color: #ffffff; }

.btn-success:hover, .btn-warning:hover, .btn-danger:hover {
    opacity: 0.9;
}

.card {
    background-color: #ffffff;
    border: 1px solid #C4DA5C;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(245, 114, 81, 0.1);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.table {
    background-color: #ffffff;
    border: 1px solid #C4DA5C;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    color: #C4DA5C;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px 5px;
}

.table td {
    color: #333333;
    border-color: #C4DA5C;
    padding: 10px 5px;
}

.form-control, .form-select {
    background-color: #ffffff;
    border: 1px solid #C4DA5C;
    color: #333333;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #e55a3a;
    box-shadow: 0 0 5px rgba(245, 114, 81, 0.5);
}

.form-control::placeholder {
    color: #6c757d;
}

.modal-content {
    background-color: #ffffff;
    border: 1px solid #C4DA5C;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading-spinner {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #C4DA5C;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.alert {
    background-color: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

.status-active { color: #C4DA5C; font-weight: 600; }
.status-deactivated { color: #ffc107; font-weight: 600; }
.status-deleted { color: #dc3545; font-weight: 600; }

.install-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border: 1px solid #C4DA5C;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(245, 114, 81, 0.2);
    padding: 10px 15px;
    max-width: 90%;
    min-width: 320px;
    z-index: 1000;
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.banner-content p {
    margin: 0;
    font-size: 1.2rem;
    color: #333333;
}

.banner-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 576px) {
    body { font-size: 0.8rem; }
    .form-control, .form-select { font-size: 0.8rem; }
    .btn-sm { font-size: 0.7rem; padding: 0.3rem 0.5rem; }

    .table-responsive {
        overflow-x: hidden;
    }

    .table {
        display: block;
        font-size: 0.7rem;
        border: none;
    }

    .table thead {
        display: none;
    }

    .table tbody {
        display: block;
    }

    .table tr {
        display: block;
        background-color: #ffffff;
        border: 1px solid #C4DA5C;
        border-radius: 6px;
        margin-bottom: 10px;
        padding: 10px 5px;
        box-shadow: 0 0 5px rgba(245, 114, 81, 0.1);
        min-height: 44px;
    }

    .table td {
        display: block;
        text-align: left;
        padding: 5px 5px;
        border: none;
        position: relative;
    }

    .table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #C4DA5C;
        display: inline-block;
        width: 40%;
        padding-right: 10px;
    }

    #attendanceTable td:nth-child(1):before { content: "Person"; }
    #attendanceTable td:nth-child(2):before { content: "Location"; }
    #attendanceTable td:nth-child(3):before { content: "Role"; }
    #attendanceTable td:nth-child(4):before { content: "Timestamp"; white-space: nowrap; }
    #attendanceTable td:nth-child(4) { 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        max-width: 100%; 
    }

    #userTable td:nth-child(1):before { content: "Name"; }
    #userTable td:nth-child(2):before { content: "Role"; }
    #userTable td:nth-child(3):before { content: "Status"; }
    #userTable td:nth-child(4):before { content: "Image"; }
    #userTable td:nth-child(5):before { content: "Actions"; }
    #userTable td:nth-child(4) img { 
        width: 40px; 
        border-radius: 4px; 
        border: 1px solid #C4DA5C; 
    }
    #userTable td:nth-child(5) { 
        display: flex; 
        flex-wrap: wrap; 
        gap: 5px; 
        align-items: center; 
    }

    #locationsTable td:nth-child(1):before { content: "Name"; }
    #locationsTable td:nth-child(2):before { content: "Latitude"; }
    #locationsTable td:nth-child(3):before { content: "Longitude"; }
    #locationsTable td:nth-child(4):before { content: "Action"; }
    #locationsTable td:nth-child(4) { 
        display: flex; 
        align-items: center; 
    }

    .install-banner {
        bottom: 10px;
        padding: 8px 10px;
    }

    .banner-content p {
        font-size: 0.9rem;
    }
}

.turn-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem; /* Big and easy to see */
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 15px;
    display: none; /* Hidden by default */
    z-index: 10;
    font-family: monospace;
    font-weight: bold;
}

#leftArrow {
    left: 20px;
}

#rightArrow {
    right: 20px;
}

