html,
body,
.wrapper {
  min-height: 100%;
}

.wrapper {
  position: relative;
}

.wrapper .content-wrapper {
  min-height: calc(100vh - calc(3.5rem + 1px) - calc(3.5rem + 1px));
}

.layout-boxed .wrapper {
  box-shadow: 0 0 10 rgba(0, 0, 0, 0.3);
}

.layout-boxed .wrapper, .layout-boxed .wrapper::before {
  margin: 0 auto;
  max-width: 1250px;
}

.layout-boxed .wrapper .main-sidebar {
  left: inherit;
}

@supports not (-webkit-touch-callout: none) {
  .layout-fixed .wrapper .sidebar {
    height: calc(100vh - (3.5rem + 1px));
  }
  .layout-fixed.text-sm .wrapper .sidebar {
    height: calc(100vh - (2.93725rem + 1px));
  }
}


/* =======================
   Navbar Styling (Blue Theme)
   ======================= */

   .navbar {
    background-color: #0a3d62; /* Biru tua untuk tampilan elegan */
    padding: 5px 20px; /* Navbar lebih pendek */
    min-height: 50px;
    box-shadow: 0px 4px 8px rgba(0, 132, 255, 0.2); /* Efek bayangan biru */
}

/* Brand Logo */
.navbar-brand {
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #f1c40f !important; /* Kuning emas */
    transition: color 0.3s;
}

.navbar-brand:hover {
    color: #0097e6 !important; /* Biru sedikit lebih gelap saat hover */
}

/* Navbar Links */
.navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 8px 12px;
    color: #ecf0f1 !important; /* Putih kebiruan */
    transition: color 0.3s, transform 0.2s;
}

.navbar-nav .nav-link:hover {
    color: #00a8ff !important; /* Biru terang saat hover */
    transform: scale(1.05);
}

/* Active Link */
.navbar-nav .nav-link.active {
    font-weight: bold;
    color: #00a8ff !important; /* Warna biru terang */
}

/* Dropdown Styling */
.navbar-nav .dropdown-menu {
    font-size: 0.9rem;
    background-color: #1b4f72; /* Biru gelap */
    border: 1px solid #00a8ff; /* Garis biru terang */
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 132, 255, 0.2);
}

.navbar-nav .dropdown-item {
    color: #ecf0f1;
    padding: 10px 15px;
}

.navbar-nav .dropdown-item:hover {
    background-color: #00a8ff;
    color: #0a3d62;
}

/* =======================
   Search Box Styling
   ======================= */

   .search-box .form-control {
    border-radius: 5px 0 0 5px;
    border: 1px solid #f1c40f; /* Ganti warna border dengan kuning keemasan */
    background-color: hsl(204, 62%, 28%);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.9rem;
    height: 35px;
}

.search-box .form-control::placeholder {
    color: #bbb;
}

.search-box .btn {
    height: 35px;
    padding: 5px 10px;
    font-size: 0.9rem;
    background-color: #f1c40f; /* Ganti warna tombol dengan kuning keemasan */
    border: 1px solid #f1c40f; /* Sesuaikan border dengan warna tombol */
    color: #0a3d62;
    transition: background 0.3s, border-color 0.3s;
}

.search-box .btn:hover {
    background-color: #f39c12; /* Warna kuning sedikit lebih gelap saat hover */
    border-color: #f39c12; /* Ganti border saat hover */
}


/* =======================
   Profile & Login Links
   ======================= */

.navbar-nav .nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar-nav .nav-item .fa {
    font-size: 1rem;
    color: #00a8ff;
}

/* =======================
   Responsive Fix
   ======================= */

@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
    }

    .search-box {
        margin-top: 10px;
    }
}

/* =======================
   Jumbotron Styling
   ======================= */

.jumbotron {
    background: linear-gradient(to right, #0a3d62, #00a8ff); /* Gradasi biru elegan */
    color: white;
    padding: 60px 20px;
    margin-bottom: 30px;
    min-height: 100vh; /* Menyebabkan jumbotron mengambil penuh tinggi layar */
    display: flex;
    justify-content: center;
    align-items: center; /* Menyusun konten di tengah vertikal */
    text-align: center; /* Memastikan teks berada di tengah */
}

.jumbotron h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.jumbotron p {
    font-size: 1.2rem;
}


/* =======================
   Jumbotron Carousel Styling
   ======================= */

.carousel-item {
    height: 500px; /* Sesuaikan tinggi sesuai kebutuhan */
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5); /* Latar belakang transparan untuk teks */
    border-radius: 10px;
    padding: 15px;
}

.carousel-caption h5 {
    font-size: 1.8rem;
    font-weight: bold;
}

.carousel-caption p {
    font-size: 1.2rem;
}


/* =======================
   Floating Button (Sticky Button)
   ======================= */
   .floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff; /* Warna biru elegan */
    color: white;
    border: none;
    padding: 12px 12px;
    border-radius: 15%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: none; /* Default tersembunyi */
}

.floating-btn:hover {
    background: #0056b3; /* Warna biru lebih gelap saat hover */
}

/* Responsif */
@media (max-width: 768px) {
    .floating-btn {
        padding: 10px 12px;
        font-size: 18px;
    }
}

/* Styling untuk bagian Sambutan Kepala Sekolah */
.sambutan-kepala {
    background-color: #f8f9fa;
    padding: 50px 0;
}

.sambutan-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.sambutan-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.sambutan-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-top: 30px;
}

.kepala-img {
    width: 100%;
    max-width: 250px;  /* Gambar tetap kotak */
    height: auto;
    margin-bottom: 20px;
    border: 2px solid #ddd;  /* Menambahkan border untuk tampilan yang lebih rapi */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);  /* Shadow halus */
}

/* Responsif untuk tampilan mobile */
@media (max-width: 768px) {
    .sambutan-kepala .row {
        text-align: center;
    }

    .sambutan-title {
        font-size: 2rem;
    }

    .sambutan-name {
        font-size: 1.1rem;
    }

    .kepala-img {
        width: 80%;  /* Menyesuaikan lebar gambar di perangkat mobile */
        max-width: 220px;
    }
}


/* ===========================
   Section Visi & Misi
   =========================== */
.visi-misi {
    background: #f8f9fa;
    padding: 60px 20px;
}

.misi-list {
    list-style: none;
    padding: 0;
}

.misi-list li {
    background: #007bff;
    color: white;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
}

/* Styling untuk Pie Chart Section */
.pie-chart-section {
    margin-top: 40px;
    text-align: center;
}

.chart-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Styling untuk Pie Chart */
#pieChart {
    max-width: 100%;
    height: auto;
    width: 100%;  /* Agar grafik pie memenuhi lebar kontainer */
}

/* Styling untuk Legend */
.legend {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.legend div {
    margin: 0 10px;
    display: flex;
    align-items: center;
}

.legend div span {
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 5px;
}

.legend .bekerja { background-color: #28a745; }
.legend .melanjutkan { background-color: #007bff; }
.legend .wirausaha { background-color: #155724; }
.legend .belum { background-color: #dc3545; }

/* Responsif untuk Canvas (Pie Chart) */
@media (max-width: 768px) {
    #pieChart {
        width: 80%;  /* Lebih kecil pada layar tablet */
        height: auto;
    }
}

@media (max-width: 480px) {
    #pieChart {
        width: 90%;  /* Lebih besar pada layar ponsel */
        height: auto;
    }
}
