/* Body & Global */
body {
    background-color: #f4f6f9;
    color: #334155;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Header & Navbar */
.navbar-custom {
    background-color: #0f172a;
    padding: 1rem 0;
}
.icon-shield {
    background-color: #fbbf24;
    color: #0f172a;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.25rem;
}

/* Tab Container (Ijin/Masuk) */
.tab-container {
    background: #e2e8f0;
    padding: 5px;
    border-radius: 12px;
    display: flex;
}
.tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    color: #64748b;
    transition: all 0.2s ease;
}
.tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Card & Steps */
.card-custom {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    background: #ffffff;
    margin-bottom: 20px;
}
.step-circle {
    width: 28px;
    height: 28px;
    background-color: #0f172a;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
}
.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* Kamera Area (Dibuat Lebih Soft) */
.kamera-box {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background-color: #f8fafc;
    padding: 20px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#my_camera {
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
}
/* Memastikan Preview Foto Tidak Gepeng */
#results img {
    width: 100% !important;
    height: auto !important;
    max-height: 240px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* Data Box & Buttons */
.data-box {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}
.tab-ijin-container {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}
.tab-ijin-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tab-ijin-btn.active {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}