﻿/* Base */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background: #f4f7fb;
    color: #0f2f2f;
}
.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}
.site-header {
    background: #0f2f2f;
    color: #fff;
    padding: 16px 0;
}
.brand {
    font-weight: 700;
    letter-spacing: 1px;
}
.nav a {
    color: #e7f3f3;
    margin-left: 16px;
    text-decoration: none;
    font-weight: 600;
}
.site-footer {
    margin-top: 40px;
    padding: 20px 0 40px;
    text-align: center;
    color: #5a6772;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 40px 0;
}
.hero-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 47, 47, 0.12);
}
.cta { margin-top: 16px; }

.card {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    margin-top: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.form label {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
}
.form input, .form select {
    width: 100%;
    padding: 10px 12px;
    margin-top: 8px;
    border: 1px solid #c7d3dd;
    border-radius: 10px;
    font-size: 14px;
}
.button {
    display: inline-block;
    padding: 10px 18px;
    background: #1f7a65;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
}
.button.secondary { background: #e0eceb; color: #1f7a65; }

.notice {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.notice.success { background: #e1f3ed; color: #1a6d55; }
.notice.error { background: #fee2e2; color: #b02a2a; }

.password-box {
    padding: 10px 14px;
    background: #f2f4f7;
    border-radius: 8px;
    font-family: Consolas, monospace;
    display: inline-block;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
}
.photo-frame {
    width: 320px;
    height: 240px;
    border: 2px dashed #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f4f7fb;
    overflow: hidden;
    margin-bottom: 12px;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.camera-controls video { width: 320px; height: 240px; border-radius: 12px; background: #111; display: block; margin-bottom: 8px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid #e7f3f3; text-align: left; }

@media (max-width: 900px) {
    .hero, .profile-grid, .split { grid-template-columns: 1fr; }
    .nav a { display: inline-block; margin: 8px 8px 0 0; }
    .photo-frame, .camera-controls video { width: 100%; height: auto; }
}

.footer-powered { margin-top: 6px; font-size: 12px; letter-spacing: 0.5px; }

.processing-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.35); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.processing-box { background: #ffffff; padding: 16px 22px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); font-weight: 700; }

.admin-links { margin: 12px 0 18px; display: flex; gap: 10px; flex-wrap: wrap; }

.attendance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.attendance-card { background: #fff; border: 1px solid #e7f3f3; border-radius: 14px; padding: 16px; box-shadow: 0 6px 16px rgba(0,0,0,0.06); }
.attendance-card img { width: 100%; height: auto; object-fit: contain; background: #f4f6f8; border-radius: 10px; margin-bottom: 10px; display: block; }
.attendance-actions { display: flex; gap: 6px; margin-top: 8px; }
.status-pill { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-present { background: #d1fae5; color: #065f46; }
.status-absent { background: #fee2e2; color: #991b1b; }
.status-unmarked { background: #e7f3f3; color: #334155; }

.thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }

.skill-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.skill-table th, .skill-table td { border: 1px solid #cbd5e1; padding: 8px 10px; vertical-align: top; }
.skill-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.skill-legend { font-size: 12px; color: #475569; }
.skill-select { width: 90px; padding: 6px 8px; border-radius: 8px; border: 1px solid #cbd5e1; }
.save-status { font-size: 12px; color: #1f7a65; margin-left: 8px; }
.save-status.error { color: #b02a2a; }

.progress-bar { width: 100%; height: 10px; background: #e7f3f3; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; }
.prog-a { background: #f59e0b; }
.prog-g { background: #22c55e; }
.prog-p { background: #16a34a; }
.prog-none { background: transparent; }


.progress-track { position: relative; width: 80%; height: 24px; background: linear-gradient(90deg, #fde68a 0%, #bbf7d0 40%, #86efac 100%); border-radius: 999px; border: 2px solid #cbd5e1; overflow: hidden; }
.progress-car { position: absolute; top: 0px; left: 6px; width: 46px; height: 20px; background: url('assets/car.png') no-repeat center/contain; transition: transform 0.3s ease; }
.car-pos-a { transform: translateX(1%); }
.car-pos-g { transform: translateX(40%); }
.car-pos-p { transform: translateX(90%); }
.car-pos-none { transform: translateX(0%); opacity: 0.4; }


.progress-flag { position: absolute; right: 10px; top: 5px; width: 12px; height: 8px; background: conic-gradient(#111827 0 90deg, #f4f7fb 90deg 180deg, #111827 180deg 270deg, #f4f7fb 270deg 360deg); background-size: 6px 4px; border-radius: 2px; }




.skills-scroll { overflow-x: auto; }
.skills-scroll table { min-width: 900px; }

@media (max-width: 700px) {
  .progress-track { width: 70%; }
}

.skill-table { border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #e7f3f3; border-radius: 12px; overflow: hidden; }
.skill-table thead th { background: #f1f5f9; color: #0f2f2f; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px; }
.skill-table tbody tr:nth-child(even) { background: #f4f7fb; }
.skill-table tbody tr:hover { background: #eef2ff; }
.skill-table td, .skill-table th { padding: 10px 12px; border-bottom: 1px solid #e7f3f3; }
.skill-table tbody tr:last-child td { border-bottom: none; }

.site-header { position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.brand { font-size: 18px; }
.nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav a { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); transition: all 0.2s ease; }
.nav a:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }
.nav .active { background: #ffffff; color: #0f2f2f; border-color: #ffffff; }
@media (max-width: 700px) { .nav { gap: 6px; } .nav a { padding: 6px 10px; font-size: 13px; } }

.terms { padding: 10px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.terms label { display: flex; align-items: flex-start; gap: 6px; font-weight: 500; margin-bottom: 10px; justify-content: flex-start; }
.terms input { margin-right: 8px; }

.terms span { line-height: 1.4; }

.terms input[type="checkbox"] { margin-top: 3px; width: 14px; height: 14px; }
.terms span { display: block; }

.button:disabled { background: #cbd5e1; color: #64748b; cursor: not-allowed; }



input[readonly], textarea[readonly], select[disabled], input[disabled] {
  background: #cbd5e1;
  color: #475569;
  border: 1px dashed #64748b;
  box-shadow: inset 0 0 0 1px #cbd5e1;
  cursor: not-allowed;
}
input[readonly]::placeholder, textarea[readonly]::placeholder {
  color: #64748b;
}

.table.compact th, .table.compact td { padding: 6px 8px; font-size: 12px; }
.table.compact th { font-weight: 700; }
.table.compact img.thumb { width: 36px; height: 36px; }






