/* ================================================
   SIKARA - Main Stylesheet
   ================================================ */
:root {
    --primary: #0f172a; /* Deep Slate Navy (Formal) */
    --primary-dark: #020617;
    --primary-light: #f1f5f9;
    --secondary: #b48600; /* Gold (Premium) */
    --accent: #ca8a04;
    --warning: #f59e0b;
    --danger: #dc2626;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --gray: #64748b;
    --gray-light: #f8fafc;
    --gray-border: #e2e8f0;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-hero: linear-gradient(160deg, #020617 0%, #0f172a 70%, #000000 100%);
    --radius: 6px;
    --radius-lg: 12px;
    --shadow: 0 4px 25px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.06);
    --font: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: #f8fafc;
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

/* ---- NAVBAR ---- */
.navbar-sikara {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.navbar-sikara .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 12px !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.navbar-sikara .nav-link:hover,
.navbar-sikara .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.12);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 8px;
    transition: all 0.2s;
    padding: 6px 12px;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.notif-dropdown {
    border-radius: var(--radius);
    overflow: hidden;
}

/* ---- HERO SECTION ---- */
.hero-section {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.8) 70%, rgba(0, 0, 0, 0.9) 100%), url("../../uploads/hero.png") center/cover no-repeat;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
    max-width: 500px;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(10px);
}

/* ---- LAYANAN CARDS ---- */
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--gray-border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: var(--dark);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--dark);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.service-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--gray);
    flex-grow: 1;
}

.service-arrow {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 16px;
}

/* ---- CARDS ---- */
.card-sikara {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-sikara .card-header-sikara {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-sikara .card-body {
    padding: 24px;
}

/* ---- DESIL BADGE ---- */
.desil-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
}

.desil-1 {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.desil-2 {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.desil-3 {
    background: #fefce8;
    color: #854d0e;
    border: 1px solid #fde68a;
}

.desil-4 {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.desil-5,
.desil-6 {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.desil-7,
.desil-8,
.desil-9,
.desil-10 {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac;
}

/* ---- FORMS ---- */
.form-control-sikara,
.form-select-sikara {
    border: 1.5px solid var(--gray-border);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-family: var(--font);
    transition: all 0.2s;
}

.form-control-sikara:focus,
.form-select-sikara:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
    outline: none;
}

.form-label-sikara {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-3);
    margin-bottom: 6px;
}

/* ---- BUTTONS ---- */
.btn-primary-sikara {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-sikara:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 86, 219, 0.3);
    color: white;
}

.btn-secondary-sikara {
    background: var(--gray-light);
    border: 1.5px solid var(--gray-border);
    color: var(--dark);
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-secondary-sikara:hover {
    background: var(--gray-border);
}

/* ---- TABLES ---- */
.table-sikara {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-sikara thead th {
    background: var(--gray-light);
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    border-bottom: 2px solid var(--gray-border);
}

.table-sikara tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-border);
    font-size: 0.875rem;
    vertical-align: middle;
}

.table-sikara tbody tr:hover {
    background: rgba(26, 86, 219, 0.02);
}

.table-sikara tbody tr:last-child td {
    border-bottom: none;
}

/* ---- STATUS BADGES ---- */
.status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-menunggu {
    background: #fef9c3;
    color: #854d0e;
}

.status-diproses {
    background: #dbeafe;
    color: #1e40af;
}

.status-selesai {
    background: #dcfce7;
    color: #166534;
}

.status-ditolak {
    background: #fee2e2;
    color: #991b1b;
}

.status-baru {
    background: #fce7f3;
    color: #9d174d;
}

.status-ditinjau {
    background: #e0e7ff;
    color: #3730a3;
}

.status-terverifikasi {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef9c3;
    color: #854d0e;
}

/* ---- CHAT WIDGET ---- */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.chat-toggle-btn {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(26, 86, 219, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle-btn:hover {
    transform: scale(1.08);
}

.chat-window {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 360px;
    height: 500px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-border);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.chat-window.hidden {
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.chat-header {
    background: var(--gradient-hero);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.chat-header-info .name {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
}

.chat-header-info .status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 80%;
}

.chat-msg.user {
    align-self: flex-end;
}

.chat-msg.assistant {
    align-self: flex-start;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.chat-msg.user .chat-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-msg.assistant .chat-bubble {
    background: var(--gray-light);
    color: var(--dark);
    border-bottom-left-radius: 4px;
}

.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--gray-border);
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    border: 1.5px solid var(--gray-border);
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 0.875rem;
    outline: none;
    font-family: var(--font);
    resize: none;
    height: 40px;
    line-height: 1.5;
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--primary-dark);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--gray);
    border-radius: 50%;
    animation: typing 1.2s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-5px)
    }
}

/* ---- FOOTER ---- */
.footer-sikara {
    background: var(--gradient-hero);
}

.brand-icon-lg {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links {}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contacts {}

.footer-contacts li {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.footer-contacts i {
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-glass-footer {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 6px 10px;
    transition: all 0.2s;
}

.btn-glass-footer:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.bg-success-soft {
    background: rgba(14, 159, 110, 0.15);
}

/* ---- MISC ---- */
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.section-sub {
    color: var(--gray);
    font-size: 0.95rem;
}

.divider-primary {
    width: 48px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
    margin: 12px 0 20px;
}

.info-card {
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.2s;
}

.info-card:hover {
    box-shadow: var(--shadow);
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ---- PAGINATION ---- */
.pagination-sikara .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    border: 1.5px solid var(--gray-border);
    color: var(--dark);
    font-size: 0.875rem;
    font-weight: 500;
}

.pagination-sikara .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ---- ALERTS ---- */
.alert-sikara {
    border-radius: var(--radius);
    border-left: 4px solid;
    padding: 14px 18px;
    font-size: 0.875rem;
}

.alert-sikara.success {
    background: #f0fdf4;
    border-color: var(--secondary);
    color: #166534;
}

.alert-sikara.error {
    background: #fef2f2;
    border-color: var(--danger);
    color: #991b1b;
}

.alert-sikara.warning {
    background: #fffbeb;
    border-color: var(--warning);
    color: #92400e;
}

.alert-sikara.info {
    background: var(--primary-light);
    border-color: var(--primary);
    color: #1e40af;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .chat-window {
        width: 320px;
        right: -8px;
    }

    .hero-section {
        padding: 50px 0 40px;
    }
}

/* Accessibility Mode Classes */
.a11y-large-text {
    font-size: 130% !important;
}
.a11y-large-text h1, .a11y-large-text h2, .a11y-large-text h3, .a11y-large-text h4, .a11y-large-text h5, .a11y-large-text h6 {
    font-size: 150% !important;
}
.a11y-large-text p, .a11y-large-text span, .a11y-large-text a, .a11y-large-text div, .a11y-large-text input, .a11y-large-text select {
    font-size: 120% !important;
}

.a11y-high-contrast {
    background-color: #000000 !important;
    color: #ffff00 !important;
}
.a11y-high-contrast * {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}
.a11y-high-contrast a {
    color: #00ffff !important;
    text-decoration: underline !important;
}
.a11y-high-contrast img, .a11y-high-contrast video {
    filter: grayscale(100%) contrast(150%);
}

