/* Animasi Muncul */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 20px 0;
}

.tamu-container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.tamu-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.tamu-header {
    background: rgba(25, 135, 84, 0.1);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tamu-header h2 {
    font-weight: 800;
    color: #198754;
    margin: 0;
    letter-spacing: -1px;
}

.tamu-body {
    padding: 40px;
}

/* Kamera Styling */
#camera-wrapper {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

#videoElement, #photoResult {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

/* Form Styling */
.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #198754;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.1);
    background: #fff;
}

.btn-save {
    background: #198754;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 18px;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(25, 135, 84, 0.3);
}

.btn-save:hover {
    background: #146c43;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(25, 135, 84, 0.4);
}

.btn-back {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.btn-back:hover {
    color: #198754;
}

@media (max-width: 768px) {
    .tamu-body { padding: 25px; }
    #camera-wrapper { height: 200px; }
}