/* ============================================================= */
/* KuraBNB Academy – Dashboard | Light Theme + Deep Red Primary  */
/* ============================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #f8f9fa;
    color: #111827;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header – sama seperti index.php */
header {
    background: #ffffff;
    padding: 1rem 2.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    border-radius: 10px;
    width: 44px;
    height: 44px;
}

.logo span {
    font-size: 1.4rem;
    font-weight: 800;
    color: #9b1c1c;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar a {
    color: #374151;
    font-weight: 600;
    text-decoration: none;
}

.navbar a:hover,
.navbar a.active {
    color: #9b1c1c;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #555;
    border-radius: 2px;
}

/* Sidebar Mobile */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 3px 0 20px rgba(0,0,0,0.12);
    transition: left 0.4s ease;
    z-index: 1000;
    padding: 90px 20px 20px;
}

.sidebar.active { left: 0; }

.sidebar a {
    display: block;
    padding: 12px 0;
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.sidebar a:hover,
.sidebar a.active {
    color: #9b1c1c;
}

.menu-overlay.active {
    background: rgba(0,0,0,0.5);
}

/* Dashboard Hero */
.dashboard-hero {
    padding: 4rem 1.5rem 3rem;
    background: linear-gradient(135deg, #fff8f8 0%, #fef2f2 100%);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.welcome-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #9b1c1c;
    margin-bottom: 0.5rem;
}

.welcome-text p {
    font-size: 1.2rem;
    color: #4b5563;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.connect-btn, .create-btn {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.connect-btn {
    background: #9b1c1c;
    color: white;
}

.connect-btn:hover {
    background: #7f1717;
}

.create-btn {
    background: #111827;
    color: white;
    text-decoration: none;
}

.create-btn:hover {
    background: #1f2937;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 14px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.stat-card h3 {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

/* My Lessons Section */
.my-lessons {
    padding: 3rem 1.5rem;
    background: #ffffff;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

#searchInput, #sortSelect {
    padding: 0.9rem 1.2rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
}

#searchInput {
    flex: 1;
    min-width: 250px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
}

/* Card style sama seperti index.php */
.content-item {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.25s;
}

.content-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.content-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.owner-address {
    color: #9b1c1c;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.5rem 0;
}

.content-item h3 {
    font-size: 1.3rem;
    margin: 0.6rem 1.5rem;
    color: #111827;
}

.content-item p {
    color: #4b5563;
    font-size: 0.97rem;
    padding: 0 1.5rem 1.5rem;
    line-height: 1.5;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.pagination button {
    padding: 0.7rem 1.6rem;
    background: #9b1c1c;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.pagination button:disabled {
    background: #d1d5db;
}

/* Popup */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 14px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.popup-content h3 {
    margin-bottom: 1rem;
    color: #111827;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.popup-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.popup-btn.confirm {
    background: #9b1c1c;
    color: white;
}

.popup-btn.cancel {
    background: #e5e7eb;
    color: #111827;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-section {
        flex-direction: column;
        text-align: center;
    }

    .action-buttons {
        justify-content: center;
        width: 100%;
    }

    .connect-btn, .create-btn {
        width: 100%;
        max-width: 280px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }

    header {
        padding: 1rem 1.25rem;
    }

    .hamburger {
        display: flex;
    }

    .navbar {
        display: none;
    }
}