/* Body & Global */
body {
    background-color: #f4f6f9;
    color: var(--c-ink-3);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Header & Navbar */
.navbar-custom {
    background-color: var(--c-ink);
    padding: 1rem 0;
}
.icon-shield {
    background-color: #fbbf24;
    color: var(--c-ink);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-10);
    font-size: 1.25rem;
}

/* Tab Container (Ijin/Masuk) */
.tab-container {
    background: var(--c-line);
    padding: 5px;
    border-radius: var(--r-12);
    display: flex;
}
.tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--r-10);
    color: var(--c-muted);
    transition: all 0.2s ease;
}
.tab-btn.active {
    background: var(--c-white);
    color: var(--c-ink);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Card & Steps */
.card-custom {
    border: none;
    border-radius: var(--r-16);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    background: var(--c-white);
    margin-bottom: 20px;
}
.step-circle {
    width: 28px;
    height: 28px;
    background-color: var(--c-ink);
    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: var(--c-ink);
    margin: 0;
}

/* Kamera Area (Dibuat Lebih Soft) */
.kamera-box {
    border: 2px dashed var(--c-line-strong);
    border-radius: var(--r-14);
    background-color: var(--c-surface);
    padding: 20px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#my_camera {
    border-radius: var(--r-12);
    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: var(--r-12);
    margin-bottom: 10px;
}

/* Data Box & Buttons */
.data-box {
    background-color: var(--c-surface);
    border-radius: var(--r-12);
    padding: 16px;
    border: 1px solid var(--c-line);
}
.tab-ijin-container {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}
.tab-ijin-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: var(--c-surface-2);
    border: 1px solid var(--c-line);
    border-radius: var(--r-8);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tab-ijin-btn.active {
    background: var(--c-ink);
    color: white;
    border-color: var(--c-ink);
}