:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-lighter: #e0e7ff;
    --bg: #f5f5fa;
    --white: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
    --shadow-lg: 0 8px 30px rgba(99, 102, 241, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(99, 102, 241, 0.3);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.header-logo i {
    font-size: 1.5rem;
}

.header-nav {
    display: flex;
    gap: 8px;
}

.header-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.header-nav a:hover, .header-nav a.active {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero .slogan {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
}

.hero .subtitle {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Kategori Grid */
.kategori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.kategori-item {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    color: var(--text);
}

.kategori-item:hover {
    border-color: var(--primary);
    background: var(--primary-lighter);
    transform: translateY(-2px);
}

.kategori-item.selected {
    border-color: var(--primary);
    background: var(--primary-lighter);
    color: var(--primary-dark);
    font-weight: 600;
}

.kategori-item i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

/* Form */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--white);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

/* Checkbox/Radio */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-lighter);
}

.btn-block {
    width: 100%;
}

/* Alert */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-info {
    background: var(--primary-lighter);
    color: var(--primary-dark);
    border: 1px solid var(--primary-light);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-biru { background: #dbeafe; color: #1e40af; }
.badge-kuning { background: #fef3c7; color: #92400e; }
.badge-oranye { background: #ffedd5; color: #9a3412; }
.badge-hijau { background: #d1fae5; color: #065f46; }
.badge-merah { background: #fee2e2; color: #991b1b; }

/* Ticket Result */
.ticket-result {
    text-align: center;
    padding: 30px;
}

.ticket-result .ticket-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    margin: 12px 0;
    padding: 12px 24px;
    background: var(--primary-lighter);
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Timeline */
.timeline {
    list-style: none;
    padding: 0;
    position: relative;
    margin-top: 16px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 45px;
    padding-bottom: 20px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 10px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--white);
}

.timeline-item .timeline-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-item .timeline-content {
    font-size: 0.9rem;
    color: var(--text);
}

.timeline-item .timeline-status {
    margin-top: 4px;
}

/* Detail Pengaduan */
.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child { border-bottom: none; }

.detail-label {
    width: 140px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.detail-value {
    flex: 1;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.6rem; }
    .hero { padding: 40px 20px; }
    .kategori-grid { grid-template-columns: repeat(2, 1fr); }
    .header-nav a { padding: 6px 10px; font-size: 0.85rem; }
    .detail-label { width: 100px; }
}

/* Info Banner */
.info-banner {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.info-card {
    flex: 1;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.info-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.info-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Lampiran */
.lampiran-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 12px;
    background: var(--primary-lighter);
    border-radius: var(--radius-sm);
}

.lampiran-link:hover {
    background: var(--primary-light);
    color: white;
}
