/* bukutamu-modern.css - Desain Cerah (Light & Vibrant) Buku Tamu OpenSID */
:root {
    --bt-primary: #0284c7;
    --bt-primary-hover: #0369a1;
    --bt-success: #10b981;
    --bt-success-hover: #059669;
    --bt-danger: #ef4444;
    --bt-bg-light: #f1f5f9;
    --bt-card-bg: rgba(255, 255, 255, 0.96);
    --bt-card-border: rgba(226, 232, 240, 0.95);
    --bt-input-bg: #f8fafc;
    --bt-input-border: #cbd5e1;
    --bt-text-main: #0f172a;
    --bt-text-muted: #64748b;
    --bt-radius-card: 20px;
    --bt-radius-input: 12px;
}

/* Reset dan Base Layout Cerah */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background-color: var(--bt-bg-light) !important;
    color: var(--bt-text-main) !important;
    font-size: 15px !important;
    overflow-x: hidden;
}

/* Background Ambient Cerah Modern */
.bt-bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 12% 15%, rgba(56, 189, 248, 0.22), transparent 45%),
        radial-gradient(circle at 88% 80%, rgba(52, 211, 153, 0.2), transparent 45%),
        radial-gradient(circle at 50% 50%, #f8fafc, #e2e8f0);
}

.bt-bg-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.08), transparent 70%);
    pointer-events: none;
}

.bt-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 36px 48px;
    box-sizing: border-box;
}

/* Header Cerah Modern */
.bt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 26px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bt-card-border);
    border-radius: var(--bt-radius-card);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    margin-bottom: 24px;
}

.bt-header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bt-header-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px;
}

.bt-header-info {
    display: flex;
    flex-direction: column;
}

.bt-header-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0284c7;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 4px;
}

.bt-header-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0284c7;
    box-shadow: 0 0 6px #0284c7;
}

.bt-header-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.bt-header-sub {
    font-size: 0.85rem;
    color: #475569;
    margin: 2px 0 0;
    font-weight: 600;
}

.bt-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bt-header-datetime {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    color: #334155;
    font-weight: 600;
}

.bt-header-datetime svg {
    width: 18px;
    height: 18px;
    fill: #0284c7;
}

.bt-clock-pill {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #0284c7;
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.bt-btn-kiosk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    border: none;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}

.bt-btn-kiosk svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.bt-btn-kiosk:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
    transform: translateY(-1px);
}

/* Grid Layout Utama */
.bt-main-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start;
}

/* Panel Kiri (Sidebar Info & Nav) */
.bt-card-sidebar {
    background: var(--bt-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bt-card-border);
    border-radius: var(--bt-radius-card);
    padding: 28px 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.bt-sidebar-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bt-hero-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: linear-gradient(135deg, #e0f2fe, #dcfce7);
    border: 1px solid #bae6fd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.14);
}

.bt-hero-icon-wrap svg {
    width: 38px;
    height: 38px;
    fill: #0284c7;
}

.bt-sidebar-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.bt-sidebar-desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

/* Menu Navigasi Tabs */
.bt-nav-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bt-nav-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.bt-nav-pill svg {
    width: 20px;
    height: 20px;
    fill: #64748b;
    transition: all 0.25s ease;
}

.bt-nav-pill:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateX(3px);
}

.bt-nav-pill:hover svg {
    fill: #0284c7;
}

.bt-nav-pill.active {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.32);
}

.bt-nav-pill.active svg {
    fill: #ffffff;
}

/* Feature List */
.bt-feature-list {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bt-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #334155;
    font-weight: 600;
}

.bt-feature-item svg {
    width: 16px;
    height: 16px;
    fill: #10b981;
    flex-shrink: 0;
}

/* Status Layanan */
.bt-status-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #065f46;
    font-weight: 700;
}

.bt-status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

/* Panel Konten Utama (Formulir Cerah) */
.bt-card-content {
    background: var(--bt-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bt-card-border);
    border-radius: var(--bt-radius-card);
    padding: 32px 30px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
}

.bt-content-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.bt-content-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bt-content-icon svg {
    width: 24px;
    height: 24px;
    fill: #0284c7;
}

.bt-content-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.bt-content-sub {
    font-size: 0.88rem;
    color: #64748b;
    margin: 3px 0 0;
    font-weight: 500;
}

/* Form Container Grid */
.bt-form-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 28px;
    align-items: start;
}

.bt-form-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.bt-field-span-2 {
    grid-column: span 2;
}

/* Form Controls */
.bt-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bt-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bt-required {
    color: #ef4444;
}

.bt-form-control,
.form-control,
.form-select {
    width: 100% !important;
    height: 46px !important;
    background: var(--bt-input-bg) !important;
    border: 1px solid var(--bt-input-border) !important;
    border-radius: var(--bt-radius-input) !important;
    color: #0f172a !important;
    font-size: 0.94rem !important;
    font-weight: 500 !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

textarea.bt-form-control,
textarea.form-control {
    height: 90px !important;
    resize: vertical;
}

.bt-form-control::placeholder,
.form-control::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.bt-form-control:focus,
.form-control:focus,
.form-select:focus {
    background: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15) !important;
    outline: none !important;
}

.form-select option {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* Kamera Section Cerah */
.bt-camera-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 290px;
    margin: 0 auto;
}

.bt-camera-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    width: 100%;
    box-sizing: border-box;
}

.bt-camera-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
}

.bt-camera-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #059669;
    font-weight: 700;
}

.bt-camera-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.capture-box {
    width: 100% !important;
    max-width: 260px !important;
    height: 195px !important;
    max-height: 195px !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #0f172a !important;
    position: relative !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.2);
    margin: 0 auto !important;
}

.capture-box video,
.capture-box img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.bt-shutter-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 11px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.bt-shutter-btn:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
    transform: translateY(-1px);
}

.bt-shutter-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.bt-retake-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 9px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.bt-retake-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.bt-retake-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Action Buttons (Simpan & Batal Cerah) */
.bt-actions-bar {
    grid-column: span 2;
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.bt-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #059669, #10b981) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 12px 28px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32) !important;
}

.bt-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #047857, #059669) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.42) !important;
    transform: translateY(-1px);
}

.bt-btn-primary:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.bt-btn-primary svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.bt-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 12px 22px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.bt-btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

.bt-btn-secondary svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Halaman Indeks Kepuasan & Pertanyaan Cerah */
.bt-guest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.bt-guest-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bt-guest-card:hover {
    background: #f8fafc;
    border-color: #0284c7;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.16);
}

.bt-guest-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0284c7;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.bt-guest-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.bt-survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.bt-survey-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.bt-survey-card:hover {
    background: #f0f9ff;
    border-color: #0284c7;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.18);
}

.bt-survey-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.bt-survey-card:hover .bt-survey-icon {
    transform: scale(1.15);
}

.bt-survey-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* Empty State Cerah */
.bt-empty-state {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bt-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.bt-empty-icon svg {
    width: 32px;
    height: 32px;
    fill: #64748b;
}

.bt-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.bt-empty-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
    .bt-main-grid {
        grid-template-columns: 290px 1fr;
        gap: 18px;
    }
    .bt-form-layout {
        grid-template-columns: 1fr;
    }
    .bt-camera-section {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 860px) {
    .bt-wrapper {
        padding: 14px 16px 30px;
    }
    .bt-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .bt-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .bt-main-grid {
        grid-template-columns: 1fr;
    }
    .bt-form-fields-grid {
        grid-template-columns: 1fr;
    }
    .bt-field-span-2 {
        grid-column: span 1;
    }
    .bt-actions-bar {
        grid-column: span 1;
        justify-content: stretch;
    }
    .bt-actions-bar button,
    .bt-actions-bar a {
        flex: 1;
        justify-content: center;
    }
}
