/* ===== KALENDER NIKAH ===== */
.kalender-nikah-wrapper { font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif; max-width:1200px; margin:0 auto; padding:10px; box-sizing:border-box; }
.kn-header { background:#fff; padding:30px; border-radius:15px; margin-bottom:20px; box-shadow:0 2px 10px rgba(0,0,0,.08); }
.kn-title-box { display:flex; align-items:center; gap:15px; margin-bottom:15px; }
.kn-icon { width:50px; height:50px; background:linear-gradient(135deg,#0d9488,#0f766e); border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:24px; color:#fff; box-shadow:0 4px 12px rgba(13,148,136,.3); }
.kn-title { font-size:28px; font-weight:700; color:#0d9488; margin:0; }
.kn-description { font-size:14px; color:#6b7280; line-height:1.6; margin-bottom:20px; }
.kn-description strong { color:#0d9488; font-weight:600; }
.kn-info-boxes { display:grid; grid-template-columns:1fr 1fr; gap:15px; margin-bottom:20px; }
.kn-info-box { padding:15px 20px; border-radius:12px; font-size:13px; line-height:1.6; }
.kn-info-box.green { background:#d1fae5; color:#065f46; border:1px solid #10b981; }
.kn-info-box.yellow { background:#fef3c7; color:#92400e; border:1px solid #f59e0b; }
.kn-info-box strong { font-weight:700; display:block; margin-bottom:8px; }
.kn-btn-daftar { display:inline-flex; align-items:center; gap:10px; padding:12px 24px; background:linear-gradient(135deg,#0d9488,#0f766e); color:#fff; border:none; border-radius:10px; font-size:15px; font-weight:600; cursor:pointer; text-decoration:none; box-shadow:0 4px 12px rgba(13,148,136,.3); }
.kn-btn-daftar:hover { transform:translateY(-3px); box-shadow:0 6px 20px rgba(13,148,136,.5); color:#fff; }
.kn-calendar-container { display:grid; grid-template-columns:1fr 350px; gap:20px; }
.kn-calendar-main { background:#fff; border-radius:15px; padding:25px; box-shadow:0 2px 10px rgba(0,0,0,.08); }
.kn-calendar-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.kn-month-title { font-size:24px; font-weight:700; color:#111827; }
.kn-nav-buttons { display:flex; gap:10px; }
.kn-nav-btn { width:36px; height:36px; border:2px solid #e5e7eb; background:#fff; border-radius:8px; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:18px; color:#6b7280; }
.kn-nav-btn:hover { border-color:#0d9488; color:#0d9488; background:#f0fdfa; }
.kn-link-hari-ini { color:#0d9488; font-size:14px; font-weight:600; cursor:pointer; text-decoration:none; }
.kn-calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:8px; }
.kn-day-header { text-align:center; font-size:12px; font-weight:700; color:#6b7280; padding:10px 0; text-transform:uppercase; }
.kn-day-cell { aspect-ratio:1; border:1px solid #e5e7eb; border-radius:8px; padding:8px; font-size:14px; color:#111827; cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; transition:all .2s; }
.kn-day-cell:hover { border-color:#0d9488; background:#f0fdfa; transform:translateY(-2px); }
.kn-day-cell.other-month { color:#d1d5db; opacity:.5; cursor:default; }
.kn-day-cell.today { background:linear-gradient(135deg,#0d9488,#0f766e); color:#fff; font-weight:700; border-color:#0d9488; }
.kn-day-cell.has-event { background:linear-gradient(135deg,#e0f2fe,#dbeafe); border-color:#3b82f6; }
.kn-day-cell.has-event.active { background:linear-gradient(135deg,#3b82f6,#2563eb); color:#fff; font-weight:700; }
.kn-day-number { font-weight:600; margin-bottom:4px; }
.kn-event-badge { font-size:10px; padding:2px 6px; background:#3b82f6; color:#fff; border-radius:10px; white-space:nowrap; margin-top:2px; }
.kn-day-cell.has-event.active .kn-event-badge { background:#fff; color:#3b82f6; }
.kn-day-label { font-size:9px; color:#6b7280; margin-top:2px; }
.kn-detail-sidebar { background:#fff; border-radius:15px; padding:25px; box-shadow:0 2px 10px rgba(0,0,0,.08); }
.kn-detail-title { font-size:20px; font-weight:700; color:#111827; margin-bottom:10px; }
.kn-detail-subtitle { font-size:13px; color:#6b7280; margin-bottom:20px; }
.kn-event-list { display:flex; flex-direction:column; gap:15px; }
.kn-event-item { padding:15px; background:#f9fafb; border-radius:10px; border-left:4px solid #0d9488; }
.kn-event-title { font-size:14px; font-weight:700; color:#111827; margin-bottom:8px; }
.kn-event-info { display:flex; align-items:center; gap:8px; font-size:12px; color:#6b7280; margin-bottom:4px; }
.kn-no-events { text-align:center; padding:40px 20px; color:#9ca3af; font-size:14px; }
.kn-no-events-icon { font-size:48px; margin-bottom:10px; opacity:.3; }
.kn-loading { text-align:center; padding:40px; color:#6b7280; }
.kn-spinner { width:40px; height:40px; border:3px solid #e5e7eb; border-top-color:#0d9488; border-radius:50%; animation:kn-spin .8s linear infinite; margin:0 auto 15px; }
@keyframes kn-spin { to { transform:rotate(360deg); } }
@media (max-width:968px){ .kn-calendar-container{ grid-template-columns:1fr; } .kn-info-boxes{ grid-template-columns:1fr; } }

/* ===== RESPONSIVE MOBILE - KALENDER ===== */
@media (max-width:768px){
    .kalender-nikah-wrapper{ padding:5px; }
    .kn-header{ padding:18px 14px; }
    .kn-title-box{ gap:10px; margin-bottom:10px; }
    .kn-icon{ width:38px; height:38px; font-size:18px; border-radius:10px; }
    .kn-title{ font-size:19px; }
    .kn-description{ font-size:12px; margin-bottom:14px; }
    .kn-info-box{ padding:12px 14px; font-size:12px; }
    .kn-btn-daftar{ width:100%; justify-content:center; padding:12px 18px; font-size:14px; }
    .kn-calendar-main{ padding:14px 10px; border-radius:12px; }
    .kn-calendar-header{ margin-bottom:14px; flex-wrap:wrap; gap:8px; }
    .kn-month-title{ font-size:17px; }
    .kn-nav-btn{ width:30px; height:30px; font-size:15px; }
    .kn-link-hari-ini{ font-size:12px; }
    .kn-calendar-grid{ gap:4px; }
    .kn-day-header{ font-size:10px; padding:6px 0; }
    .kn-day-cell{ padding:3px 2px; font-size:11px; border-radius:6px; }
    .kn-day-number{ margin-bottom:1px; font-size:12px; }
    .kn-event-badge{ font-size:8px; padding:1px 4px; }
    .kn-day-label{ display:none; } /* sembunyikan label "Kosong" di layar sempit, cukup warna sel */
    .kn-detail-sidebar{ padding:16px; border-radius:12px; margin-top:15px; }
    .kn-detail-title{ font-size:17px; }
    .kn-event-item{ padding:12px; }
    .kn-event-title{ font-size:13px; }
    .kn-event-info{ font-size:11px; }
}
@media (max-width:400px){
    .kn-day-cell{ font-size:10px; padding:2px 1px; }
    .kn-day-number{ font-size:11px; }
    .kn-month-title{ font-size:15px; }
}

/* ===== STATISTIK NIKAH ===== */
.statistik-container { max-width:1200px; margin:0 auto; padding:15px 12px; font-family:'Segoe UI',sans-serif; }
.statistik-title { font-size:22px; color:#2c3e50; margin-bottom:6px; text-align:center; }
.statistik-subtitle { font-size:13px; color:#7f8c8d; margin-bottom:20px; text-align:center; }
.filter-section { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:20px; }
.filter-group { display:flex; flex-direction:column; }
.filter-label { font-size:13px; font-weight:600; color:#2c3e50; margin-bottom:6px; }
.filter-select { padding:10px 12px; font-size:13px; border:2px solid #16a085; border-radius:7px; background:#fff; color:#2c3e50; cursor:pointer; min-height:40px; }
.chart-container { background:#fff; border:1px solid #ecf0f1; border-radius:8px; padding:20px 15px; margin-bottom:15px; height:360px; }
.export-button { background:linear-gradient(135deg,#16a085,#138871); color:#fff; border:none; padding:10px 22px; font-size:13px; font-weight:600; border-radius:7px; cursor:pointer; }
.total-info { font-size:14px; color:#16a085; font-weight:600; margin-top:15px; }
.legend-custom { display:flex; justify-content:center; gap:20px; margin:15px 0; flex-wrap:wrap; }
.legend-item { display:flex; align-items:center; gap:6px; }
.legend-color { width:16px; height:16px; border-radius:3px; }
.legend-color.kua { background:#c6dc39; }
.legend-color.luar { background:#16a085; }
.legend-text { font-size:12px; color:#2c3e50; font-weight:500; }
@media (max-width:768px){ .filter-section{ grid-template-columns:1fr; } .chart-container{ height:300px; } .export-button{ width:100%; } }
