/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Card Styles */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 ;
    -webkit-border-radius: 10px 10px 0 0 ;
    -moz-border-radius: 10px 10px 0 0 ;
    -ms-border-radius: 10px 10px 0 0 ;
    -o-border-radius: 10px 10px 0 0 ;
}

.card-header.bg-warning {
    background-color: #ffc107 ;
}

/* Table Styles */
.table th {
    background-color: #f8f9fa;
}

/* Image Styles */
.img-fluid {
    max-height: 300px;
    object-fit: cover;
}

/* Badge Styles */
.badge {
    font-weight: normal;
}

/* List Group Styles */
.list-group-item {
    transition: all 0.3s;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-flush .list-group-item {
    border-left: 0;
    border-right: 0;
    padding: 0.75rem 0;
}

/* Navbar Styles */
.navbar {
    background-color: #343a40 ;
    background-image: linear-gradient(to right, #343a40, #2c3e50) ;
    border-bottom: 3px solid #ffc107;
}

.navbar.bg-primary {
    background-color: #343a40 ;
    background-image: linear-gradient(to right, #343a40, #2c3e50) ;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffc107;
    transform: translateY(-2px);
}

.navbar-dark .navbar-brand {
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .active > .nav-link {
    color: #ffc107;
    font-weight: 500;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #333;
}





/* Style untuk logo di navbar */
.navbar-brand {
    display: flex;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand img {
    height: 70px; /*Sesuaikantinggilogo*/
    width: auto; /*Biarkanlebarmenyesuaikanproporsi*/
    margin-right: 20px; /*Jarakantaralogodanteks*/
    transition: all 0.3s ease; /*Animasiketikahover*/
    border-style:double;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
} 



/* Efek hover pada logo */
.navbar-brand:hover img {
    transform: scale(1.05); /* Sedikit membesar saat hover */
}


/* Style untuk teks di samping logo */
.navbar-brand span {
    font-weight: 600;
    font-size: 1.2rem;
    color: white;
}



 


/* Firefox fix */
@-moz-document url-prefix() {
    .navbar {
        background-color: #343a40 ;
        background-image: linear-gradient(to right, #343a40, #2c3e50) ;
    }
}


/* Fix untuk logo di semua perangkat */
.navbar-brand img {
    max-height: 50px;
    width: auto;
    object-fit: contain; /* Pastikan gambar tidak terdistorsi */
    aspect-ratio: attr(width) / attr(height); /* Pertahankan rasio aspek */
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 40px;
        padding: 2px 0; /* Tambahkan padding kecil */
    }
    
    /* Pastikan navbar tidak memampatkan logo */
    .navbar-collapse {
        flex-basis: 100%;
        flex-grow: 0; /* Mencegah kompresi berlebihan */
    }
}






/* Footer Styles */
footer {
    background: linear-gradient(135deg, #0f0f0f, #0f0f0f) ;
    border-top: 3px solid #ffc107;
    /* color: #ecf0f1; */
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    padding: 1.5rem 0 ;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 50%);
}

footer h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #f1c40f;
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #f1c40f;
}

footer ul li {
    margin-bottom: 0.4rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

footer ul li:hover {
    transform: translateX(5px);
}

footer a {
    font-size: 0.85rem;
    color: #ecf0f1 ;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

footer a:hover {
    color: #f1c40f ;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #f1c40f;
    transition: all 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 1rem 0;
}

footer .text-center {
    font-size: 0.8rem;
    color: #f1c40f ;
    padding-top: 0.5rem;
}

.footer.bg-dark {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%) ;
    background-color: #343a40 ;
    border-top: 4px solid #ffc107;
}

/* Responsive Styles */
@media (min-width: 768px) {
    footer .row > div {
        padding: 0 0.5rem ;
    }
}

@media (max-width: 767px) {
    footer {
        padding: 0.6rem 0 ;
    }
    footer .row > div {
        margin-bottom: 0.5rem ;
    }
    footer h5 {
        margin-bottom: 0.6rem;
    }
}