/* ==========================================================================
   HALAMAN BUKU TAMU & PRESENSI PENGUNJUNG PERPUSTAKAAN
   Institut Kesehatan Karsa Husada Garut
   ========================================================================== */

/* Page Banner */
.pengunjung-banner {
    position: relative;
    background-color: #09a89e;
    background: linear-gradient(135deg, #078f86 0%, #09a89e 100%);
    padding: 3.5rem 0 3.25rem;
    color: #ffffff;
    overflow: hidden;
    border-bottom: 4px solid #ffb830;
}

.pengunjung-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.pengunjung-banner-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.pengunjung-badge-wrap {
    margin-bottom: 0.85rem;
}

.pengunjung-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.pengunjung-badge .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffb830;
    box-shadow: 0 0 0 0 rgba(255, 184, 48, 0.7);
    animation: visitorPulse 2s infinite;
}

@keyframes visitorPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 184, 48, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 184, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 184, 48, 0);
    }
}

.pengunjung-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.pengunjung-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    margin: 0;
}

/* Dual Form Row */
.form-row-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .form-row-dual {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Main Section */
.pengunjung-section {
    padding: 3rem 0 4.5rem;
    background: #f8fafc;
}

.pengunjung-layout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* Form Card */
.pengunjung-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}

/* Card Header: Live Clock & Status */
.pengunjung-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.clock-widget {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.clock-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e6fffa;
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clock-info {
    display: flex;
    flex-direction: column;
}

.live-time {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    font-family: monospace;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.live-date {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.open-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #bbf7d0;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
}

/* Tab Switcher */
.pengunjung-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0.5rem 1.5rem 0;
    gap: 0.75rem;
}

.pengunjung-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pengunjung-tab-btn:hover {
    color: #0f172a;
}

.pengunjung-tab-btn.active {
    color: #09a89e;
    border-bottom-color: #09a89e;
    font-weight: 700;
}

.pengunjung-tab-btn svg {
    color: currentColor;
}

/* Form Body */
.pengunjung-card-body {
    padding: 1.75rem;
}

.pengunjung-form-group {
    margin-bottom: 1.4rem;
}

.pengunjung-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.45rem;
}

.pengunjung-label .required {
    color: #ef4444;
}

.pengunjung-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.35rem;
}

/* Search NIM / Nama Input with Autocomplete */
.search-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.nim-search-box {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.pengunjung-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pengunjung-input:focus {
    outline: none;
    border-color: #09a89e;
    box-shadow: 0 0 0 3px rgba(9, 168, 158, 0.15);
}

.pengunjung-input::placeholder {
    color: #94a3b8;
}

.btn-check-nim {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1.25rem;
    background: #09a89e;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-check-nim:hover {
    background: #078a82;
}

.btn-check-nim:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Autocomplete Dropdown List */
.member-dropdown-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.14), 0 4px 12px -2px rgba(9, 168, 158, 0.08);
    z-index: 999;
    max-height: 290px;
    overflow-y: auto;
    padding: 0.35rem 0;
    animation: fadeInDropdown 0.15s ease-out;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.member-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f8fafc;
}

.member-dropdown-item:last-child {
    border-bottom: none;
}

.member-dropdown-item:hover,
.member-dropdown-item.active {
    background: #f0fdfa;
}

.member-dropdown-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #09a89e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    overflow: hidden;
    flex-shrink: 0;
}

.member-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-dropdown-info {
    flex: 1;
    min-width: 0;
}

.member-dropdown-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.member-dropdown-item:hover .member-dropdown-name {
    color: #09a89e;
}

.member-dropdown-meta {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-dropdown-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    background: #e6fffa;
    color: #0d9488;
    flex-shrink: 0;
}

.member-dropdown-badge.member-cooldown-badge {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.member-dropdown-item.is-cooldown {
    background: #fffdf5;
}

.member-dropdown-item.is-cooldown:hover {
    background: #fef9c3;
}

.member-dropdown-empty {
    padding: 1.15rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Selected Card (Tegas & Pasti / Bebas Ambigu) */
.member-selected-card {
    background: #f0fdfa;
    border: 2px solid #09a89e;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    margin-top: 0.75rem;
    margin-bottom: 1.35rem;
    position: relative;
    box-shadow: 0 6px 16px -2px rgba(9, 168, 158, 0.18);
    animation: fadeInDown 0.22s ease-out;
}

.selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.65rem;
}

.selected-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selected-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #09a89e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    overflow: hidden;
    flex-shrink: 0;
}

.selected-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-info {
    flex: 1;
    min-width: 0;
}

.selected-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.25rem;
    line-height: 1.25;
}

.selected-meta {
    font-size: 0.8rem;
    color: #0f766e;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.meta-dot {
    opacity: 0.4;
}

.btn-change-member {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #99f6e4;
    color: #0d9488;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-change-member:hover {
    background: #f0fdfa;
    border-color: #09a89e;
    color: #078a82;
}

/* Member Result Preview Card */
.member-preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    margin-top: 0.75rem;
    animation: fadeInDown 0.25s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.member-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #09a89e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    overflow: hidden;
    flex-shrink: 0;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.15rem;
}

.member-info-meta {
    font-size: 0.78rem;
    color: #0d9488;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Radio Group: Keperluan Kunjungan */
.keperluan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.keperluan-card-option {
    position: relative;
    cursor: pointer;
}

.keperluan-card-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.keperluan-card-inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.18s ease;
}

.keperluan-card-option:hover .keperluan-card-inner {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.keperluan-card-option input[type="radio"]:checked + .keperluan-card-inner {
    background: #f0fdfa;
    border-color: #09a89e;
    box-shadow: 0 0 0 2px rgba(9, 168, 158, 0.2);
}

.keperluan-icon-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.keperluan-card-option input[type="radio"]:checked + .keperluan-card-inner .keperluan-icon-dot {
    border-color: #09a89e;
    background: #09a89e;
}

.keperluan-card-option input[type="radio"]:checked + .keperluan-card-inner .keperluan-icon-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.keperluan-label-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
}

.keperluan-card-option input[type="radio"]:checked + .keperluan-card-inner .keperluan-label-text {
    color: #0f172a;
    font-weight: 700;
}

/* Radio Group: Jenis Kelamin */
.gender-radio-group {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.35rem;
}

.gender-option {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.gender-option input {
    accent-color: #09a89e;
}

/* Submit Button */
.btn-presensi-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.95rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #09a89e 0%, #0d9488 100%);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(9, 168, 158, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 0.5rem;
}

.btn-presensi-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -5px rgba(9, 168, 158, 0.45);
    background: linear-gradient(135deg, #0aa39a 0%, #087f74 100%);
}

.btn-presensi-submit:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Sidebar Widgets */
.pengunjung-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Stat Cards Container */
.pengunjung-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pengunjung-stat-box {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.pengunjung-stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #09a89e;
}

.stat-box-gold::before {
    background: #f59e0b;
}

.stat-num {
    font-size: 2.1rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.35rem;
    font-family: monospace;
}

.stat-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Activity Feed Card */
.feed-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.feed-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.feed-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
}

.feed-title svg {
    color: #09a89e;
    flex-shrink: 0;
}

.feed-title-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.feed-title-main {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.feed-title-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: #09a89e;
    letter-spacing: 0.03em;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed #e2e8f0;
}

.feed-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feed-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f0fdfa;
    color: #0d9488;
    border: 1px solid #99f6e4;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feed-detail {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.feed-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.feed-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-time {
    font-size: 0.68rem;
    font-weight: 600;
    color: #09a89e;
    background: #f0fdfa;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.feed-meta {
    font-size: 0.72rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-cat {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 145px;
    flex-shrink: 0;
}

.feed-meta-dot {
    opacity: 0.5;
    flex-shrink: 0;
}

.feed-purpose {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.feed-empty {
    text-align: center;
    padding: 1.5rem 0.5rem;
    color: #94a3b8;
    font-size: 0.82rem;
}

/* Quick Info Box */
.info-box {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.55;
}

.info-box-title {
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.info-box-title svg {
    color: #09a89e;
}

/* Success Modal Overlay */
.visitor-success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.visitor-success-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.visitor-success-dialog {
    background: #ffffff;
    border-radius: 20px;
    max-width: 460px;
    width: 100%;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.visitor-success-modal-overlay.active .visitor-success-dialog {
    transform: scale(1);
}

.success-icon-bubble {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 0 10px #f0fdf4;
}

.success-modal-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.success-modal-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.success-modal-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.success-modal-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}

.success-modal-row:last-child {
    margin-bottom: 0;
}

.success-modal-label {
    color: #64748b;
    font-weight: 500;
}

.success-modal-val {
    color: #0f172a;
    font-weight: 700;
}

.btn-success-close {
    width: 100%;
    padding: 0.8rem 1.25rem;
    border-radius: 10px;
    background: #09a89e;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-success-close:hover {
    background: #078a82;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .pengunjung-layout-grid {
        grid-template-columns: 1fr;
    }
    .keperluan-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pengunjung-title {
        font-size: 1.85rem;
    }
    .pengunjung-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .pengunjung-tabs {
        padding: 0.5rem 0.75rem 0;
    }
    .pengunjung-tab-btn {
        padding: 0.65rem 0.85rem;
        font-size: 0.82rem;
    }
    .pengunjung-card-body {
        padding: 1.25rem;
    }
}

/* Tab Panes */
.pengunjung-tab-pane {
    display: none;
}

.pengunjung-tab-pane.active {
    display: block;
    animation: fadeInPane 0.22s ease-out;
}

@keyframes fadeInPane {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alerts */
.pengunjung-alert {
    padding: 0.85rem 1.15rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    line-height: 1.45;
}

.pengunjung-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.pengunjung-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.pengunjung-alert-info {
    background: #f0fdfa;
    color: #0f766e;
    border: 1px solid #99f6e4;
}

.pengunjung-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Form Select Styling */
.pengunjung-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.pengunjung-select:focus {
    outline: none;
    border-color: #09a89e;
    box-shadow: 0 0 0 3px rgba(9, 168, 158, 0.15);
}

/* Spinner */
.spinner-inline {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

