/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background: #f4f4f4;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background: #1b1b2f;
    color: #fff;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar.closed {
    transform: translateX(-100%);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #111126;
}

.sidebar-header h2 {
    font-size: 1.2rem;
}

.sidebar-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-nav {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-nav li {
    margin: 0.5rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #29294d;
}

.sidebar-nav i {
    margin-right: 10px;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background: #111126;
}

.sidebar-footer a {
    color: #ff4b5c;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-footer i {
    margin-right: 8px;
}

/* NAVBAR */
.admin-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    transition: left 0.3s ease, width 0.3s ease;
    z-index: 500;
}

/* SAAT SIDEBAR TERBUKA */
.admin-navbar.shift {
    left: 250px;
    width: calc(100% - 250px);
}


.admin-navbar h3 {
    font-size: 1.1rem;
    color: #1b1b2f;
}

.admin-navbar button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #1b1b2f;
}

.logout-btn {
    color: #ff4b5c;
    text-decoration: none;
    font-weight: bold;
}

/* MAIN CONTENT */
.admin-main {
    margin-left: 0;
    padding: 70px 20px 20px 20px;
    transition: margin-left 0.3s ease;
}

/* SAAT SIDEBAR TERBUKA */
.admin-main.shift {
    margin-left: 250px;
}

.admin-section {
    margin-bottom: 2rem;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.admin-section h2 {
    margin-bottom: 1rem;
    color: #1b1b2f;
}

/* HIDDEN SECTIONS */
.hidden-section {
    display: none;
}



/* RESPONSIVE */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .admin-navbar {
        left: 0;
        width: 100%;
    }

    .admin-main {
        margin-left: 0;
    }
}

/* =========================
   DASHBOARD CARDS
========================= */
.dashboard-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.dashboard-cards .card {
    flex: 1 1 200px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.2s;
}

.dashboard-cards .card:hover {
    transform: translateY(-3px);
}

.dashboard-cards h4 {
    margin-bottom: 10px;
    font-weight: 500;
    color: #1b1b2f;
}

.dashboard-cards p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2a2a4a;
}

/* =========================
   TABLE STYLING
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
}

table th {
    background: #1b1b2f;
    color: #fff;
    font-weight: 600;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

/* =========================
   USERS FILTER
========================= */
.user-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.user-filter input, .user-filter select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* =========================
   GALLERY GRID
========================= */
.gallery-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gallery-item {
    width: calc(33.333% - 10px);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-align: center;
    padding-bottom: 10px;
}

.gallery-item img {
    width: 100%;
    display: block;
}

.gallery-item p {
    margin-top: 8px;
    font-size: 0.9rem;
}

/* =========================
   TESTIMONI & CONTACT
========================= */
#testimoni ul {
    list-style: disc;
    padding-left: 20px;
}

#testimoni li {
    margin-bottom: 10px;
}

#contact p, #contact a {
    display: block;
    margin-bottom: 8px;
    color: #2a2a4a;
}

#contact a {
    color: #1b1b2f;
    text-decoration: none;
    font-weight: 500;
}

#contact a:hover {
    text-decoration: underline;
}

/* =========================
   RESPONSIVE CONTENT
========================= */
@media (max-width: 768px) {
    .admin-main {
        margin-left: 0;
        padding-top: 70px;
    }
    .dashboard-cards {
        flex-direction: column;
    }
    .gallery-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 100%;
    }
}
