/* Custom styles for SIGA Jeneponto Homepage Redesign */

/* Hero Banner Section */
.siga-hero {
    position: relative;
    padding: 80px 0;
    color: #ffffff;
    text-align: center;
    border-bottom: 4px solid #4f46e5;
    background-size: cover;
    background-position: center;
}

.siga-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(31, 41, 55, 0.7) 100%);
    z-index: 1;
}

.siga-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.8em;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.4em;
    color: #6366f1;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0 auto 35px auto;
    max-width: 750px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Custom Search Bar inside Hero */
.hero-search-container {
    max-width: 650px;
    margin: 0 auto;
}

.hero-search-form {
    display: flex;
    background: #ffffff;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.hero-search-form:focus-within {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    border-color: #6366f1;
}

.hero-search-input-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.hero-search-icon {
    position: absolute;
    left: 20px;
    color: #9ca3af;
    font-size: 1.2em;
}

.hero-search-input {
    width: 100%;
    border: none !important;
    padding: 12px 20px 12px 50px !important;
    font-size: 1.1em;
    color: #1f2937;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.hero-search-input::placeholder {
    color: #9ca3af;
}

.hero-search-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0 30px !important;
    font-weight: 600 !important;
    font-size: 1.1em !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%) !important;
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

/* Primary Data Feature Cards */
.siga-feature-cards {
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

.siga-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.siga-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #e2e8f0;
}

.card-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2.2em;
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.siga-card:hover .card-icon-container {
    transform: scale(1.1) rotate(5deg);
}

/* Theme gradients for icons */
.bg-gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
}

.bg-gradient-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
}

.siga-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3em;
    margin-bottom: 12px;
}

.siga-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.siga-card-title a:hover {
    color: #4f46e5;
}

.siga-card-desc {
    font-size: 0.95em;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.siga-card-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none !important;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.siga-card:hover .siga-card-btn {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

/* Category Grid Section */
.siga-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2em;
    text-align: center;
    color: #0f172a;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 15px;
}

.siga-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #4f46e5;
    border-radius: 2px;
}

.siga-section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.category-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.category-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #6366f1;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.08);
}

.cat-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    margin-right: 18px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

/* Dynamic color schemes for category icons */
.cat-scheme-kesehatan { background-color: #fef2f2; color: #ef4444; }
.cat-scheme-pendidikan { background-color: #eff6ff; color: #3b82f6; }
.cat-scheme-sdm { background-color: #faf5ff; color: #a855f7; }
.cat-scheme-ekonomi { background-color: #f0fdf4; color: #22c55e; }
.cat-scheme-politik { background-color: #fffbeb; color: #d97706; }
.cat-scheme-hukum { background-color: #ecfeff; color: #0891b2; }
.cat-scheme-kekerasan { background-color: #fff1f2; color: #f43f5e; }
.cat-scheme-perlindungan { background-color: #f0fdfa; color: #0d9488; }
.cat-scheme-tumbuh { background-color: #fdf2f8; color: #db2777; }
.cat-scheme-dasar { background-color: #f8fafc; color: #64748b; }

.category-card:hover .cat-icon-container {
    transform: scale(1.1);
}

.cat-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.cat-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95em;
    color: #334155;
    margin-bottom: 2px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    transition: color 0.2s ease;
}

.category-card:hover .cat-name {
    color: #4f46e5;
}

.cat-meta {
    font-size: 0.8em;
    color: #94a3b8;
}

.cat-badge {
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 0.85em;
    padding: 6px 12px;
    border-radius: 20px;
    margin-left: 10px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.category-card:hover .cat-badge {
    background: #6366f1;
    color: #ffffff;
}

/* Visitor Statistics Section */
.siga-stats-section {
    background: #f8fafc;
    padding: 60px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.stat-widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    min-width: 260px;
    flex: 1 1 260px;
    max-width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    margin-right: 20px;
    flex-shrink: 0;
}

.stat-details {
    flex-grow: 1;
}

.stat-title {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-val {
    font-size: 2em;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

/* Icon backgrounds for stats */
.stat-icon-today { background-color: #ecfeff; color: #0891b2; }
.stat-icon-total { background-color: #eff6ff; color: #2563eb; }
.stat-icon-online { background-color: #f0fdf4; color: #16a34a; position: relative; }

/* Pulse animation for active online stats */
.pulse-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Responsiveness tweaks */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2em;
    }
    .hero-subtitle {
        font-size: 1.1em;
    }
    .siga-hero {
        padding: 60px 0 80px 0;
    }
    .siga-feature-cards {
        margin-top: 20px;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern Login Page Styles */
.login-page-section {
    background: radial-gradient(circle, #f8fafc 0%, #e2e8f0 100%) !important;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: 60px 0 !important;
}

.login-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03), 0 20px 48px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    padding: 35px 25px !important;
    transition: all 0.3s ease;
}

.login-header-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    font-size: 1.6em !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    text-align: center;
}

.login-header-subtitle {
    font-size: 0.85em;
    color: #64748b;
    margin-bottom: 25px;
    text-align: center;
}

.login-input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1em;
    z-index: 10;
}

.login-form-control {
    height: 48px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 45px !important;
    padding-right: 45px !important;
    font-size: 1em !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    width: 100%;
}

.login-form-control:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.password-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: #6366f1;
}

.login-submit-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    height: 48px !important;
    font-weight: 600 !important;
    font-size: 1.05em !important;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.login-submit-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%) !important;
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

