/* Header Styles */
.header-desa {
    background-image: url('../img/pemandangan.png');
    background-size: cover;
    background-position: center;
    min-height: 200px;
    position: relative;
    color: white;
    padding: 15px 0;
    margin-bottom: 0;
}

.header-desa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    height: 100%;
}

.logo-desa {
    max-height: 150px;
    margin-right: 15px;
}

.nama-desa h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 5px;
    font-size: 2.9rem;
}

.nama-desa p {
    font-size: 1rem;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    margin-bottom: 3px;
    line-height: 1.2;
}

.foto-bupati {
    text-align: center;
}

.foto-bupati img {
    max-height: 150px;
    border: none; /* Mengganti border: transparent dengan none */
    border-radius: 5px;
    margin-bottom: 5px;
}

.foto-bupati p {
    margin: 0;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.divider {
    position: relative;
}

.divider::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Navbar Styles */
.navbar-desa {
    background: linear-gradient(135deg, #1E90FF 10%, #00BFFF 90%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-desa .navbar-brand {
    font-weight: 600;
    color: white;
}

.navbar-desa .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-desa .nav-link:hover,
.navbar-desa .nav-link:focus,
.navbar-desa .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.navbar-desa .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-desa .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-desa .dropdown-menu {
    background-color: #1e3c72;
    border: none;
}

.navbar-desa .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-desa .dropdown-item:hover {
    background-color: #2a5298;
    color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-desa {
        min-height: auto;
        padding: 10px 0;
    }
    
    .logo-desa {
        max-height: 80px;
        margin-right: 10px;
    }
    
    .nama-desa h1 {
        font-size: 1.4rem;
    }
    
    .nama-desa p {
        font-size: 0.9rem;
    }
    
    .foto-bupati img {
        max-height: 120px;
        margin-top: 10px;
    }
    
    .divider::after {
        display: none;
    }
    
    .navbar-desa .navbar-nav {
        padding-top: 10px;
    }
    
    .navbar-desa .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-desa .dropdown-menu {
        background-color: transparent;
        border: none;
        box-shadow: none;
    }
    
    .navbar-desa .dropdown-item {
        padding-left: 1.5rem;
    }
}


/* Slide Show Selamar Datang */
#welcomeCarousel {
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 800px;
  overflow: hidden;
  width: 100%;
}

/* Carousel Items */
#welcomeCarousel .carousel-inner {
  height: 100%;
}

#welcomeCarousel .carousel-item {
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

#welcomeCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
}

/* Overlay Caption */
.carousel-caption-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  z-index: 10;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  padding: 20px;
  color: white;
}

.carousel-caption-overlay h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  animation: fadeInDown 1s ease-out;
}

.carousel-caption-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
  animation: fadeIn 1.5s ease-out;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  z-index: 20;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-size: 100% 100%;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .carousel-caption-overlay h1 {
    font-size: 3.5rem;
  }
  .carousel-caption-overlay h2 {
    font-size: 2rem;
  }
}

@media (max-width: 992px) {
  #welcomeCarousel {
    height: 70vh;
  }
  .carousel-caption-overlay h1 {
    font-size: 3rem;
  }
  .carousel-caption-overlay h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  #welcomeCarousel {
    height: 60vh;
    min-height: 350px;
  }
  .carousel-caption-overlay {
    padding: 15px;
  }
  .carousel-caption-overlay h1 {
    font-size: 2.5rem;
  }
  .carousel-caption-overlay h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  #welcomeCarousel {
    height: 50vh;
    min-height: 300px;
  }
  .carousel-caption-overlay h1 {
    font-size: 2rem;
  }
  .carousel-caption-overlay h2 {
    font-size: 1.2rem;
  }
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
  }
}

/* News Ticker Styles */
.news-ticker {
    background: linear-gradient(135deg, #00FFFF 50%, #7FFFD4 50%);
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
    height: 60px; /* Increased height */
    display: flex;
    align-items: center;
}

.ticker-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.ticker-icon {
    color: white;
    background-color: #1e88e5;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 18px;
    flex-shrink: 0;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    margin: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    padding: 5px 0;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 40px;
    height: 100%;
    font-size: 16px;
}

.ticker-date {
    color: #6c757d;
    margin-right: 15px;
    font-weight: 500;
    font-size: 14px;
}

.ticker-text {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.ticker-text:hover {
    color: #1e88e5;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}


/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Circular Menu Styles */
.card-circle-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 kolom di desktop */
    gap: 10px;
    margin: 0px 0;
    justify-items: center;
}

.card-circle {
    text-align: center;
    text-decoration: none;
    width: 100%;
    max-width: 120px;
    transition: transform 0.3s;
}

.card-circle:hover {
    transform: translateY(-5px);
}

.card-circle-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.card-circle:hover .card-circle-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.card-circle-title {
    font-size: 14px;
    color: #212529;
    margin: 0;
    font-weight: 500;
    transition: color 0.3s;
}

.card-circle:hover .card-circle-title {
    color: #0d6efd;
}

/* Warna Background Icon */
.bg-primary { background-color: #0d6efd; }
.bg-success { background-color: #198754; }
.bg-info { background-color: #0dcaf0; }
.bg-warning { background-color: #ffc107; }
.bg-danger { background-color: #dc3545; }
.bg-secondary { background-color: #6c757d; }

/* Responsive Design */
@media (max-width: 1200px) {
    .card-circle-container {
        grid-template-columns: repeat(4, 1fr); /* 4 kolom di tablet */
    }
}

@media (max-width: 768px) {
    .card-circle-container {
        grid-template-columns: repeat(4, 1fr); /* 4 kolom di mobile - 3 baris */
        gap: 15px;
    }
    
    .card-circle-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .card-circle-title {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .card-circle-container {
        grid-template-columns: repeat(4, 1fr); /* 2 kolom di mobile kecil */
        gap: 10px;
    }
    
    .card-circle-icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .card-circle {
        max-width: 80px;
    }
}

/* Base Styles */
.activities-section {
    padding: 20px 0;
    background: linear-gradient(135deg, #1E90FF 50%, #00BFFF 50%);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #2c3e50;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #3498db;
}

/* Slider Container */
.activities-slider {
    position: relative;
}

/* Card Styles */
.activity-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 0 15px;
    transition: transform 0.3s;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.card-img-container {
    height: 200px;
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.activity-card:hover .card-img-container img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.activity-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.card-text {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.read-more i {
    margin-left: 5px;
    font-size: 0.8rem;
}

/* Slick Overrides */
.slick-slide {
    padding: 10px;
}

.slick-prev, 
.slick-next {
    width: 40px;
    height: 40px;
    z-index: 1;
}

.slick-prev {
    left: -50px;
}

.slick-next {
    right: -50px;
}

.slick-prev:before, 
.slick-next:before {
    color: #3498db;
    font-size: 40px;
}

.slick-dots li button:before {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .slick-prev {
        left: -30px;
    }
    
    .slick-next {
        right: -30px;
    }
    
    .activity-card {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .slick-prev, 
    .slick-next {
        display: none !important;
    }
}


        body {
            background-color: #f8f9fa;
            padding-top: 2rem;
            padding-bottom: 2rem;
        }
        
        .card-chart {
            border: none;
            border-radius: 15px;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            overflow: hidden;
            margin-bottom: 25px;
            height: 100%;
        }
        
        .card-chart:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
        }
        
        .card-header {
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            color: white;
            border-bottom: none;
            padding: 1.2rem 1.5rem;
            position: relative;
        }
        
        .card-header:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #ff8a00, #e52e71);
        }
        
        .card-body-chart {
            padding: 1.5rem;
            background-color: #fff;
        }
        
        .chart-wrapper {
            position: relative;
            height: 280px;
            width: 100%;
        }
        
        .card-icon {
            font-size: 1.8rem;
            margin-right: 10px;
            color: rgba(255, 255, 255, 0.8);
        }
        
        .card-title {
            font-weight: 600;
            margin-bottom: 0;
            display: flex;
            align-items: center;
        }
        
        .info-badge {
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            padding: 3px 12px;
            font-size: 0.8rem;
            margin-left: auto;
        }
        
        .row-cards {
            margin-top: 30px;
        }


/* CSS untuk slide perangkat ohoi */
/* Base Styles */
.perangkat-section {
    background: linear-gradient(135deg, #1E90FF 50%, #00BFFF 50%);
    padding: 60px 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

/* Slider Container */
.perangkat-slider {
    position: relative;
    padding: 0 50px;
}

/* Card Styles */
.perangkat-card {
    text-align: center;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin: 0 10px;
    padding-bottom: 20px;
}

.perangkat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.photo-container {
    height: 250px;
    overflow: hidden;
    margin-bottom: 15px;
}

.perangkat-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.perangkat-card:hover .perangkat-photo {
    transform: scale(1.05);
}

.perangkat-info {
    padding: 0 15px;
}

.perangkat-name {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
}

.perangkat-position {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 0;
}

/* Slick Slider Navigation */
.slick-prev, .slick-next {
    width: 40px;
    height: 40px;
    z-index: 1;
    background: rgba(52, 152, 219, 0.7);
    border-radius: 50%;
    transition: all 0.3s;
}

.slick-prev:hover, .slick-next:hover {
    background: #3498db;
}

.slick-prev {
    left: 0;
}

.slick-next {
    right: 0;
}

.slick-prev:before, .slick-next:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 20px;
}

.slick-prev:before {
    content: "\f104";
}

.slick-next:before {
    content: "\f105";
}

.slick-dots li button:before {
    font-size: 10px;
    color: #bdc3c7;
}

.slick-dots li.slick-active button:before {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .photo-container {
        height: 220px;
    }
}

@media (max-width: 991px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .photo-container {
        height: 200px;
    }
    
    .perangkat-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .perangkat-slider {
        padding: 0 40px;
    }
    
    .photo-container {
        height: 180px;
    }
}

@media (max-width: 575px) {
    .section-title {
        font-size: 1.4rem;
    }
    
    .perangkat-slider {
        padding: 0 30px;
    }
    
    .photo-container {
        height: 270px;
    }
    
    .perangkat-name {
        font-size: 1rem;
    }
    
    .perangkat-position {
        font-size: 0.9rem;
    }
}



.login-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh; /* Diubah dari 100vh ke 80vh untuk desktop */
    display: flex;
    align-items: center;
    padding: 2rem 0; /* Padding vertikal ditambahkan */
    margin: 0; /* Pastikan tidak ada margin eksternal */
  }
  
  .login-form-wrapper {
    background-color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 2rem; /* Padding internal */
    margin: 0 auto; /* Pusatkan form */
  }
  
  .login-form-wrapper:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .login-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem; /* Diperkecil dari 0.5rem */
  }
  
  .form-group {
    margin-bottom: 1.25rem; /* Jarak antar form field */
  }
  
  .form-control {
    border-left: none;
    border-right: none;
    border-top: none;
    border-radius: 0;
    border-bottom: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
  }
  
  .form-control:focus {
    box-shadow: none;
    border-color: #3498db;
  }
  
  .input-group-text {
    background-color: transparent;
    border-right: none;
    border-radius: 0;
    border-bottom: 1px solid #ced4da;
  }
  
  .btn-primary {
    background-color: #3498db;
    border: none;
    padding: 10px;
    transition: all 0.3s;
    margin-top: 0.5rem; /* Jarak dari field terakhir */
  }
  
  .btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
  }
  
  .toggle-password {
    border-left: none;
    border-radius: 0;
    border-bottom: 1px solid #ced4da;
    cursor: pointer;
  }

  /* Responsive untuk mobile */
  @media (max-width: 991px) {
    .login-section {
      min-height: auto; /* Hapus min-height di mobile */
      padding: 1rem 0; /* Padding lebih kecil di mobile */
    }
    
    .login-form-wrapper {
      padding: 1.5rem; /* Padding lebih kecil di mobile */
      margin: 0 1rem; /* Tambahkan margin horizontal kecil */
    }
    
    .login-title {
      font-size: 1.5rem; /* Ukuran judul lebih kecil */
      margin-bottom: 0.75rem;
    }
    
    .form-group {
      margin-bottom: 1rem; /* Jarak antar field lebih kecil */
    }
    
    .btn-primary {
      padding: 8px; /* Tombol lebih kecil */
      margin-top: 0.25rem;
    }
  }

  /* Untuk layar sangat kecil */
  @media (max-width: 576px) {
    .login-section {
      padding: 0.5rem 0;
    }
    
    .login-form-wrapper {
      padding: 1rem;
      border-radius: 8px;
    }
    
    .login-title {
      font-size: 1.25rem;
    }
  }



/* Base Styles */
.document-card {
    transition: all 0.2s ease;
    border-top: 3px solid transparent;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* PDF Viewer Container */
.pdf-preview-container {
    height: 200px;
    background-color: #f8f9fa;
}

.pdf-scroll-wrapper {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Untuk scroll halus di iOS */
}

.pdf-scroll-wrapper iframe {
    min-height: 100%;
    pointer-events: auto;
}

.pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

/* Mobile Optimization */
@media (max-width: 576px) {
    .document-section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .document-card {
        padding: 1rem;
    }
    
    .pdf-preview-container {
        height: 200px;
    }
    
    .document-description,
    .meta-item {
        font-size: 0.8rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Toolbar PDF Disabled */
iframe[src*=".pdf"] {
    toolbar: 0;
    navpanes: 0;
}