/* assets/css/style.css */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #8090a1;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #021466 0%, #021466 100%);
    min-height: 100vh;
}

/* Navbar Styling */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
}

.logo p {
    font-size: 0.8rem;
    color: var(--gray);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Container */
.container {
    background: #0e0180;
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 1.5rem;
}

.card-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--accent);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
}

/* Tables */
.table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light);
}

table tbody tr:hover {
    background: rgba(52, 152, 219, 0.1);
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Profile Image */
.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary);
}

.stat-label {
    color: var(--gray);
    margin-top: 0.5rem;
}

.table tbody td {
    color: #000000 !important;
}
.table tbody tr {
    color: #000000 !important;
}

.table thead th {
    color: #000000 !important;
    background-color: #e9ecef !important;
    font-weight: 600;
}
.table tbody td {
    color: #000000 !important;
}
.badge {
    color: white !important;
}
/* Perbaikan Container agar Proporsional */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Card Custom - Lebih Rapi */
.card-custom {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.card-header-custom {
    padding: 15px 20px;
}

.card-header-custom h3 {
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-custom h3 img {
    width: 30px;
    height: 30px;
}

.card-body-custom {
    padding: 20px;
}

/* Announcement Card - Lebih Proporsional */
.announcement-card {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.announcement-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.announcement-card .text-muted {
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.announcement-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Struktur Card - Lebih Rapi */
.struktur-card {
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    text-align: center;
    height: 100%;
}

.struktur-avatar-small,
.struktur-icon-small {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.struktur-name-small {
    font-size: 0.85rem;
    margin-top: 10px;
}

.struktur-list-small ul {
    text-align: left;
    margin-top: 10px;
}

.struktur-list-small li {
    font-size: 0.75rem;
    padding: 5px 0;
}

/* Gallery Item - Lebih Proporsional */
.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Social Icons */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f2f5;
    padding: 8px 15px;
    border-radius: 25px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.social-link:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a472a, #0d2818);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer a {
    color: #27ae60;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .card-header-custom h3 {
        font-size: 1.1rem;
    }
    
    .announcement-card h4 {
        font-size: 1rem;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .struktur-avatar-small,
    .struktur-icon-small {
        width: 60px;
        height: 60px;
    }
    
    .struktur-name-small {
        font-size: 0.75rem;
    }
    
    .social-link {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}
/* Maps Container */
.maps-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.maps-container iframe {
    width: 100%;
    height: 250px;
    border: 0;
    display: block;
}

/* Responsive Maps */
@media (max-width: 768px) {
    .maps-container iframe {
        height: 200px;
    }
}
