/*!
 * CSS ini merupakan karya asli Musadat. SIGDES Application Model 2024-2025.
 *
 * Hak Cipta © 2024-2025 Musadat. Semua Hak Dilindungi Undang-Undang.
 * 
 * File ini disediakan sebagai bagian dari aplikasi SIGDES untuk mendukung 
 * pengelolaan dan pengembangan sistem informasi desa yang lebih baik.
 * Dilarang keras memperbanyak, memodifikasi, atau mendistribusikan ulang 
 * file ini tanpa izin tertulis dari pemilik hak cipta.
 *
 * Dibuat dengan standar terbaik untuk mendukung fungsionalitas aplikasi
 * serta meningkatkan pengalaman pengguna.
 */



/*====================================================================================================
/*====================================================================================================
/*====================================================================================================
/*====================================================================================================
/* Dropdown Navbarstyles */
/* Navbar Container */
.navbar {
    width: 100%;
    height: 64px;
    /* Tinggi tetap untuk navbar */
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 2rem;
    /* Jarak antara menu dan tombol aksi */
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: rgb(119, 26, 26);
    border-radius: 0.375rem;
    /*  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
    z-index: 100;
}


/* Desktop Styles */
@media screen and (min-width: 769px) {
    .navbar .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .navbar .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 64px;
    }

    .desktop-menu {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-item {
        position: relative;
        padding: 0.5rem 1rem;
        color: inherit;
        text-decoration: none;
        border-radius: 0.375rem;
        transition: background-color 0.2s ease;
    }

    .nav-item:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .nav-dropdown {
        position: relative;
    }

    .nav-dropdown-button {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: none;
        border: none;
        color: inherit;
        cursor: pointer;
        border-radius: 0.375rem;
        transition: background-color 0.2s ease;
    }

    .nav-dropdown-button:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }


    .nav-dropdown-content.show {
        display: block;
    }

    .nav-dropdown-content a {
        display: block;
        padding: 0.75rem 1rem;
        color: inherit;
        text-decoration: none;
        transition: background-color 0.2s ease;
    }

    .nav-dropdown-content a:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .nav-button {
        padding: 0.5rem 1rem;
        border-radius: 0.375rem;
        font-weight: 500;
        transition: opacity 0.2s ease;
    }

    .nav-button:hover {
        opacity: 0.9;
    }

    /* Hide mobile elements on desktop */
    .mobile-nav-container,
    .mobile-menu,
    .hamburger {
        display: none;
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {

    .desktop-menu,
    .nav-actions {
        display: none;
    }
}

/*====================================================================================================

/* On Header anda Navigation */
/* Theme Styles */
.theme-light {
    background-color: white;
    color: #1a202c;
}

.theme-light nav {
    background-color: #f3f4f6;
}

.theme-light .nav-link:hover {
    background-color: #e5e7eb;
}

.theme-light .dropdown-content {
    background-color: white;
    border: 1px solid #e5e7eb;
}

.theme-dark {
    background-color: #1a202c;
    color: white;
}

.theme-dark nav {
    background-color: #2d3748;
}

.theme-dark .nav-link:hover {
    background-color: #4a5568;
}

.theme-dark .dropdown-content {
    background-color: #2d3748;
    border: 1px solid #4a5568;
}

.theme-dark .dropdown-content a:hover {
    background-color: #4a5568;
}

.theme-blue {
    background-color: #2563eb;
    color: white;
}

.theme-blue nav {
    background-color: #1d4ed8;
}

.theme-blue .nav-link:hover {
    background-color: #3b82f6;
}

.theme-blue .dropdown-content {
    background-color: #1d4ed8;
    border: 1px solid #3b82f6;
}

.theme-blue .dropdown-content a:hover {
    background-color: #3b82f6;
}

.theme-green {
    background-color: #059669;
    color: white;
}

.theme-green nav {
    background-color: #047857;
}

.theme-green .nav-link:hover {
    background-color: #10b981;
}

.theme-green .dropdown-content {
    background-color: #047857;
    border: 1px solid #10b981;
}

.theme-green .dropdown-content a:hover {
    background-color: #10b981;
}

/* Dropdown Styles */
.dropdown-content {
    display: none;
    position: absolute;
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 0.375rem;
}

.dropdown-content.show {
    display: block;
}

/* Theme Switcher Styles */
.theme-switcher {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 8px;
    width: 120px;
}

.theme-switcher.show {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    transition: transform 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-light {
    background: linear-gradient(145deg, #ffffff, #f3f4f6);
}

.color-dark {
    background: linear-gradient(145deg, #1f2937, #111827);
}

.color-blue {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
}

.color-red {
    background: linear-gradient(145deg, #e00e50, #e2073e);
}

.color-green {
    background: linear-gradient(145deg, #10b981, #059669);
}


/* Navigation Link Styles */
.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

/* Button Styles */
.btn-layanan {
    transition: all 0.3s ease;
}

.btn-login {
    transition: all 0.3s ease;
}

/* End Header anda Navigation */


@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Tambahkan padding-top pada main content saat navbar fixed */
.main-content {
    transition: padding-top 0.3s ease;
}

.main-content-padding {
    padding-top: 64px;
    /* Sesuaikan dengan tinggi navbar */
}

/* JavaScript untuk mengatur Fixed Navbar */


/* ... (CSS sebelumnya tetap sama) ... */

/* Styles untuk Slider Berita */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.slider-nav {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-nav button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-nav button.active {
    background: white;
}

/* Styles untuk Card Layanan */
.service-card {
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Styles untuk Agenda */
.agenda-item {
    position: relative;
    padding-left: 20px;
}

.agenda-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2563eb;
}

/* Theme Switcher Styles */
.theme-switcher {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px;
    width: 120px;
    z-index: 1000;
    /* Memastikan theme switcher selalu di atas */
}

/* Desktop Position */
@media screen and (min-width: 769px) {
    .theme-settings {
        position: relative;
    }

    .theme-switcher {
        right: 0;
        top: calc(100% + 10px);
        /* Jarak 10px dari tombol */
    }

    /* Arrow indicator */
    .theme-switcher::before {
        content: '';
        position: absolute;
        top: -8px;
        right: 15px;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid white;
    }
}

/* Mobile Position */
@media screen and (max-width: 768px) {
    .theme-settings {
        position: relative;
    }

    .theme-switcher {
        right: 0;
        top: calc(100% + 10px);
    }

    .theme-switcher::before {
        content: '';
        position: absolute;
        top: -8px;
        right: 15px;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid white;
    }
}

.theme-switcher.show {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Color Options Styles */
.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    transition: transform 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

/* Theme-specific styles for the switcher */
.theme-light .theme-switcher {
    background-color: white;
    border: 1px solid #e5e7eb;
}

.theme-dark .theme-switcher {
    background-color: #2d3748;
    border: 1px solid #4a5568;
}

.theme-dark .theme-switcher::before {
    border-bottom-color: #2d3748;
}

.theme-blue .theme-switcher {
    background-color: #1e40af;
    border: 1px solid #3b82f6;
}

.theme-blue .theme-switcher::before {
    border-bottom-color: #1e40af;
}

.theme-green .theme-switcher {
    background-color: #065f46;
    border: 1px solid #10b981;
}

.theme-green .theme-switcher::before {
    border-bottom-color: #065f46;
}

/* Overlay untuk menutup theme switcher saat klik di luar */
.theme-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

.theme-overlay.show {
    display: block;
}

/* CSS Responsive */
@media screen and (max-width: 768px) {

    /* Navbar Mobile */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 64px;
        /* Sesuaikan dengan tinggi navbar */
        left: 0;
        right: 0;
        background: inherit;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .mobile-menu.active {
        display: block;
        animation: slideDown 0.3s ease-in-out;
    }

    .mobile-menu a {
        display: block;
        padding: 0.75rem 1rem;
        margin: 0.5rem 0;
        border-radius: 0.375rem;
    }

    .mobile-menu .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
    }

    .mobile-menu .dropdown-content a {
        padding-left: 2rem;
    }

    /* Hamburger Icon */
    .hamburger {
        display: block;
        cursor: pointer;
        padding: 0.5rem;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        margin: 5px 0;
        background-color: currentColor;
        transition: all 0.3s ease-in-out;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Slider Mobile */
    .slide img {
        height: 250px;
        /* Lebih pendek untuk mobile */
    }

    .slide-caption {
        padding: 15px;
    }

    .slide-caption h3 {
        font-size: 1rem;
    }

    .slide-caption p {
        font-size: 0.875rem;
    }

    /* Layout Mobile */
    .main-content {
        margin-top: 1rem;
    }

    .service-card {
        margin: 0.5rem 0;
    }

    /* Hide desktop elements */
    .desktop-only {
        display: none !important;
    }
}

/* Desktop Styles */
@media screen and (min-width: 769px) {

    /* Hide mobile elements */
    .mobile-only {
        display: none !important;
    }

    /* Desktop Navigation */
    .desktop-menu {
        display: flex !important;
    }

    /* Desktop Layout */
    .content-wrapper {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Desktop Slider */
    .slide img {
        height: 400px;
    }

    /* Desktop Sidebar */
    .sidebar {
        position: sticky;
        top: 80px;
        height: fit-content;
    }
}

/* Shared Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* CSS Responsive */
@media screen and (max-width: 768px) {

    /* Navbar Mobile */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 64px;
        /* Sesuaikan dengan tinggi navbar */
        left: 0;
        right: 0;
        background: inherit;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .mobile-menu.active {
        display: block;
        animation: slideDown 0.3s ease-in-out;
    }

    .mobile-menu a {
        display: block;
        padding: 0.75rem 1rem;
        margin: 0.5rem 0;
        border-radius: 0.375rem;
    }

    .mobile-menu .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
    }

    .mobile-menu .dropdown-content a {
        padding-left: 2rem;
    }

    /* Hamburger Icon */
    .hamburger {
        display: block;
        cursor: pointer;
        padding: 0.5rem;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        margin: 5px 0;
        background-color: currentColor;
        transition: all 0.3s ease-in-out;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Slider Mobile */
    .slide img {
        height: 250px;
        /* Lebih pendek untuk mobile */
    }

    .slide-caption {
        padding: 15px;
    }

    .slide-caption h3 {
        font-size: 1rem;
    }

    .slide-caption p {
        font-size: 0.875rem;
    }

    /* Layout Mobile */
    .main-content {
        margin-top: 1rem;
    }

    .service-card {
        margin: 0.5rem 0;
    }

    /* Hide desktop elements */
    .desktop-only {
        display: none !important;
    }
}

/* Desktop Styles */
@media screen and (min-width: 769px) {

    /* Hide mobile elements */
    .mobile-only {
        display: none !important;
    }

    /* Desktop Navigation */
    .desktop-menu {
        display: flex !important;
    }

    /* Desktop Layout */
    .content-wrapper {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Desktop Slider */
    .slide img {
        height: 400px;
    }

    /* Desktop Sidebar */
    .sidebar {
        position: sticky;
        top: 80px;
        height: fit-content;
    }
}

/* Shared Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}




/* Font Families */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Typography Scales */
.text-xs {
    font-size: 0.75rem;
    /* 12px */
}

.text-sm {
    font-size: 0.875rem;
    /* 14px */
}

.text-base {
    font-size: 1rem;
    /* 16px */
}

.text-lg {
    font-size: 1.125rem;
    /* 18px */
}

.text-xl {
    font-size: 1.25rem;
    /* 20px */
}

.text-2xl {
    font-size: 1.5rem;
    /* 24px */
}

.text-3xl {
    font-size: 1.875rem;
    /* 30px */
}

.text-4xl {
    font-size: 2.25rem;
    /* 36px */
}

/* Font Weights */
.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Text Colors */
.text-primary {
    color: #1a56db;
    /* Biru Tua */
}

.text-secondary {
    color: #4b5563;
    /* Abu-abu Tua */
}

.text-success {
    color: #059669;
    /* Hijau */
}

.text-danger {
    color: #dc2626;
    /* Merah */
}

.text-warning {
    color: #d97706;
    /* Oranye */
}

.text-info {
    color: #0284c7;
    /* Biru Muda */
}

.text-light {
    color: #9ca3af;
    /* Abu-abu Muda */
}

.text-dark {
    color: #111827;
    /* Hitam */
}

.text-white {
    color: #881818;
}

/* Header Styles */
.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a56db;
    margin-bottom: 1rem;
}

.header-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    font-weight: 500;
}

/* Content Styles */
.content-title {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}

.content-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 1rem;
}

/* News Article Styles */
.article-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a56db;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.article-content {
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.7;
}

/* Footer Styles */
.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #580a0a;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Link Styles */
a {
    color: #1a56db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e40af;
}

/* Button Text Styles */
.btn {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.btn-sm {
    font-size: 0.875rem;
}

.btn-lg {
    font-size: 1.125rem;
}

/* Responsive Text Adjustments */
@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
    }

    .content-title {
        font-size: 1.75rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-content {
        font-size: 1rem;
    }
}

/* Special Text Effects */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.text-gradient {
    background: linear-gradient(45deg, #1a56db, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Table Text Styles */
.table-header {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.table-data {
    font-size: 0.938rem;
    color: #4b5563;
}

/* Form Text Styles */
.form-label {
    font-size: 0.938rem;
    font-weight: 500;
    color: #374151;
}

.form-input {
    font-size: 1rem;
    color: #111827;
}

.form-helper {
    font-size: 0.813rem;
    color: #6b7280;
}

/* Alert Text Styles */
.alert-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.alert-message {
    font-size: 0.938rem;
}

/* Card Text Styles */
.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.card-subtitle {
    font-size: 1rem;
    color: #4b5563;
}

.card-text {
    font-size: 0.938rem;
    color: #6b7280;
}