/* ... kode CSS sebelumnya ... */

.location-info-card,
.camera-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.location-info-card h4,
.camera-card h4 {
    margin-bottom: 15px;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

#cabang-info {
    background: #f0fff4;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    border-left: 4px solid #48bb78;
}

.camera-note {
    text-align: center;
    color: #718096;
    font-size: 14px;
    margin-top: 10px;
}

.btn-large {
    padding: 15px 20px;
    font-size: 18px;
    width: 100%;
}


/* Styling untuk form koordinat */

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 768px) {
    .filter-row {
        flex-direction: row;
        align-items: end;
    }
    .action-buttons {
        flex-direction: row;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.btn-login,
.btn-primary,
.btn-secondary,
.btn-info,
.btn-back,
.btn-logout {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-login,
.btn-primary {
    background: #667eea;
    color: white;
    width: 100%;
}

.btn-secondary {
    background: #f093fb;
    color: white;
}

.btn-info {
    background: #4fd1c5;
    color: white;
}

.btn-back {
    background: #a0aec0;
    color: white;
}

.btn-logout {
    background: #fc8181;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
}

.btn-primary:hover {
    background: #5a6fd8;
}

.btn-secondary:hover {
    background: #e879f9;
}

.btn-info:hover {
    background: #38b2ac;
}

.btn-back:hover {
    background: #718096;
}

.btn-logout:hover {
    background: #f56565;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card h3 {
    margin-bottom: 15px;
    color: #4a5568;
}

.status-info p {
    margin-bottom: 8px;
    padding: 8px;
    background: #f7fafc;
    border-radius: 5px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-buttons a {
    text-align: center;
}

.absen-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#camera-container {
    text-align: center;
    margin: 20px 0;
}

#video,
#canvas {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

#location-info {
    background: #edf2f7;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.filter-section {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.data-table tr:hover {
    background: #f7fafc;
}

.status-tepatwaktu {
    color: #38a169;
    font-weight: 600;
}

.status-telat {
    color: #e53e3e;
    font-weight: 600;
}

.error {
    background: #fed7d7;
    color: #c53030;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid #e53e3e;
}

.success {
    background: #c6f6d5;
    color: #276749;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid #38a169;
}

@media (min-width: 768px) {
    .container {
        max-width: 750px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
    .filter-row {
        flex-direction: row;
        align-items: end;
    }
    .action-buttons {
        flex-direction: row;
    }
}


/* Tambahkan di style.css */

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.time-display {
    text-align: right;
}

.time-display #current-date {
    font-weight: bold;
    color: #fff;
    font-size: 14px;
}

.time-display #current-time {
    font-weight: bold;
    color: #fff;
    font-size: 16px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.info-card h4 {
    margin-bottom: 15px;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.time-info {
    background: #f0fff4;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #48bb78;
}

.time-info p {
    margin: 8px 0;
    font-size: 14px;
}

.no-data {
    color: #a0aec0;
    font-style: italic;
}

.info-text {
    color: #718096;
    font-size: 14px;
    margin-top: 10px;
}


/* Styling untuk action buttons setelah absen */

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.action-buttons a {
    flex: 1;
    min-width: 120px;
    text-align: center;
}


/* Responsive design */

@media (max-width: 768px) {
    .header-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .time-display {
        text-align: left;
    }
    .action-buttons {
        flex-direction: column;
    }
    .action-buttons a {
        width: 100%;
    }
}


/* Styling untuk deteksi wajah */

#face-detection-overlay {
    position: relative;
    width: 400px;
    height: 300px;
    margin: 0 auto;
}

.detection-waiting {
    color: #d69e2e;
    font-weight: bold;
}

.detection-success {
    color: #38a169;
    font-weight: bold;
}

.detection-error {
    color: #e53e3e;
    font-weight: bold;
}

#face-status {
    text-align: center;
    margin: 15px 0;
}

#face-status p {
    margin: 5px 0;
}


/* Styling untuk tombol foto di rekap */

.btn-photo {
    background: #4299e1;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.btn-photo:hover {
    background: #3182ce;
}

.no-photo {
    color: #a0aec0;
    font-style: italic;
    font-size: 12px;
}


/* Modal styling */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover {
    color: #000;
}

#modal-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
}

#modal-info {
    background: #f7fafc;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

#modal-info p {
    margin: 5px 0;
}


/* Styling untuk loading state */

#btn-loading {
    display: none;
}


/* Responsive design */

@media (max-width: 768px) {
    #camera-container video,
    #camera-container canvas {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    #face-detection-overlay {
        width: 100%;
        max-width: 300px;
    }
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}


/* Tambahan untuk tabel rekap */

.data-table th:nth-child(7),
.data-table td:nth-child(7) {
    text-align: center;
}