/* Modern Design for Pengaduan Desa System */

:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --secondary: #f093fb;
    --secondary-dark: #f5576c;
    --success: #43e97b;
    --success-dark: #38f9d7;
    --info: #4facfe;
    --info-dark: #00f2fe;
    --warning: #fa709a;
    --warning-dark: #fee140;
    --danger: #f5576c;
    --dark: #2d3748;
    --light: #f7fafc;
    --gray: #718096;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f7fafc;
    color: #2d3748;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

main {
    flex: 1;
    padding: 2rem 0;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Improved Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Card Improvements */
.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Badge Status Improvements */
.badge-status {
    padding: 0.5em 1.25em;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-menunggu-verifikasi {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.status-diverifikasi {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.status-diproses {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.status-selesai {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.status-ditolak {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

/* Timeline Improvements */
.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    z-index: 2;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 21px;
    width: 2px;
    height: calc(100% + 10px);
    background: linear-gradient(180deg, #667eea 0%, rgba(102, 126, 234, 0.2) 100%);
    z-index: 1;
}

.timeline-item:last-child::after {
    display: none;
}

/* Button Improvements */
.btn {
    border-radius: 10px;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.btn-success:hover {
    box-shadow: 0 5px 15px rgba(67, 233, 123, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.btn-info:hover {
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.btn-warning:hover {
    box-shadow: 0 5px 15px rgba(250, 112, 154, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #f5576c 0%, #fa709a 100%);
}

.btn-danger:hover {
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

/* Table Improvements */
.table-hover tbody tr {
    transition: all 0.3s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

/* Form Improvements */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Alert Improvements */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.alert-success {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
    border-left: 4px solid #43e97b;
    color: #22543d;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.1) 0%, rgba(250, 112, 154, 0.1) 100%);
    border-left: 4px solid #f5576c;
    color: #742a2a;
}

.alert-info {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border-left: 4px solid #4facfe;
    color: #2c5282;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.1) 0%, rgba(254, 225, 64, 0.1) 100%);
    border-left: 4px solid #fa709a;
    color: #744210;
}

/* Navbar Improvements */
.navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer Improvements */
footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

footer a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: none;
}

/* Loading Spinner */
.spinner-border {
    border-width: 3px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #f5576c 0%, #fa709a 100%);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4);
}

/* Image Hover Effect */
img {
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.6s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .btn-hero {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 1.5rem !important;
    }
    
    .category-card {
        padding: 1.5rem !important;
    }
    
    .stats-card {
        padding: 1.5rem !important;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-soft {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.shadow-medium {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.shadow-hard {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.rounded-xl {
    border-radius: 20px !important;
}

.rounded-2xl {
    border-radius: 25px !important;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}