/* ============================================
   Pengaduan Masyarakat - Puskesmas Jatinegara
   Custom Styles
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --color-primary: #059669;
    --color-primary-dark: #047857;
    --color-primary-light: #10b981;
    --color-secondary: #6b7280;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;
    
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 0.75rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: var(--font-family);
    color: #1f2937;
    background-color: #f9fafb;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #111827;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

/* ============================================
   Cards
   ============================================ */
.card {
    border-radius: var(--border-radius);
    border: none;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Forms
   ============================================ */
.form-control, .form-select {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border-color: #e5e7eb;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-control-lg {
    font-size: 1rem;
    padding: 1rem 1.25rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* ============================================
   Navbar
   ============================================ */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    border-radius: var(--border-radius);
}

/* ============================================
   Badges
   ============================================ */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 0.5rem;
}

/* ============================================
   Feature Icons
   ============================================ */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Soft Background Colors
   ============================================ */
.bg-primary-soft {
    background-color: rgba(5, 150, 105, 0.1);
}

.bg-success-soft {
    background-color: rgba(16, 185, 129, 0.1);
}

.bg-warning-soft {
    background-color: rgba(245, 158, 11, 0.1);
}

.bg-danger-soft {
    background-color: rgba(239, 68, 68, 0.1);
}

.bg-info-soft {
    background-color: rgba(59, 130, 246, 0.1);
}

.bg-secondary-soft {
    background-color: rgba(107, 114, 128, 0.1);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    padding: 3rem 0;
}

.hero-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   Tables
   ============================================ */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-hover tbody tr:hover {
    background-color: #f9fafb;
}

/* ============================================
   Footer
   ============================================ */
footer {
    font-size: 0.9rem;
}

footer a:hover {
    text-decoration: underline !important;
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem !important;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar, footer, .btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    body {
        background: white !important;
    }
}

/* ============================================
   Accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* High contrast for elderly users */
.text-muted {
    color: #6b7280 !important;
}

/* Large touch targets for mobile */
@media (max-width: 768px) {
    .nav-link, .btn, .form-control, .form-select {
        min-height: 44px;
    }
}
