* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.navbar {
    background: #1a73e8;
    color: white;
    padding: 15px 0;
    margin-bottom: 30px;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar a { color: white; text-decoration: none; margin-left: 20px; }
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-primary { background: #1a73e8; color: white; }
.btn-primary:hover { background: #1557b0; }
.btn-success { background: #34a853; color: white; }
.btn-success:hover { background: #2d8a47; }
.btn-danger { background: #ea4335; color: white; }
.btn-warning { background: #fbbc04; color: #333; }
.btn-secondary { background: #e8eaed; color: #5f6368; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}
.form-control:focus { outline: none; border-color: #1a73e8; }
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}
.alert-success { background: #e6f4ea; color: #1e8e3e; border: 1px solid #34a853; }
.alert-danger { background: #fce8e8; color: #d93025; border: 1px solid #ea4335; }
.alert-warning { background: #fef3e8; color: #b06000; border: 1px solid #fbbc04; }
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-pending { background: #e8eaed; color: #5f6368; }
.status-submitted { background: #e8f0fe; color: #1967d2; }
.status-approved { background: #e6f4ea; color: #1e8e3e; }
.status-rejected { background: #fce8e8; color: #d93025; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
th { font-weight: 600; color: #666; }
.preview-img { max-width: 200px; border-radius: 8px; border: 1px solid #ddd; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.camera-box {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s;
}
.camera-box:hover { border-color: #1a73e8; }
.camera-box video {
    width: 100%;
    max-width: 360px;
    border-radius: 10px;
    background: #000;
    display: none;
}
.camera-box canvas {
    width: 100%;
    max-width: 360px;
    border-radius: 10px;
    display: none;
    border: 2px solid #34a853;
}
.camera-box .preview-static {
    width: 100%;
    max-width: 360px;
    border-radius: 10px;
    display: none;
}
.camera-box .camera-placeholder {
    padding: 50px 20px;
    color: #999;
    font-size: 15px;
}
.camera-box .camera-placeholder span {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}
.camera-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.camera-actions .btn { padding: 8px 18px; font-size: 13px; }
.face-guide {
    position: relative;
    display: inline-block;
}
.face-guide .face-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 250px;
    border: 3px dashed rgba(255,255,255,0.85);
    border-radius: 50% 50% 45% 45%;
    pointer-events: none;
}
.face-guide .face-text {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
    pointer-events: none;
}
