/* ============================================================= */
/* KuraBNB Academy – Create Lesson | Premium Light Theme         */
/* Primary: Deep Red (#9b1c1c) – Modern & Elegant                */
/* ============================================================= */

* {
    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 – Konsisten */
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;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #555;
    border-radius: 2px;
}

/* Sidebar & Overlay – sama seperti sebelumnya */
.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 {
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.sidebar a:hover,
.sidebar a.active {
    color: #9b1c1c;
}

.menu-overlay.active {
    background: rgba(0,0,0,0.5);
}

/* Main Create Section – Premium Feel */
.create-main {
    padding: 5rem 1.5rem 6rem;
    background: linear-gradient(135deg, #fff8f8 0%, #fef2f2 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.create-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.create-card:hover {
    box-shadow: 0 20px 60px rgba(155,28,28,0.08);
}

h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #9b1c1c;
    text-align: center;
    margin-bottom: 1rem;
}

.subtitle {
    text-align: center;
    color: #4b5563;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Connect Button – Premium */
.connect-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 2rem;
    padding: 1rem 2rem;
    background: #9b1c1c;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(155,28,28,0.2);
}

.connect-btn:hover {
    background: #7f1717;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(155,28,28,0.25);
}

/* Form – Floating Labels Premium */
form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.4rem 1.2rem 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.25s ease;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #9b1c1c;
    box-shadow: 0 0 0 3px rgba(155,28,28,0.12);
    outline: none;
}

.form-group label {
    position: absolute;
    top: 1.1rem;
    left: 1.2rem;
    color: #9ca3af;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.25s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: 0.4rem;
    left: 1rem;
    font-size: 0.85rem;
    color: #9b1c1c;
    background: white;
    padding: 0 0.4rem;
}

/* Submit Button */
.submit-btn {
    padding: 1.1rem;
    background: linear-gradient(135deg, #9b1c1c, #7f1717);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(155,28,28,0.2);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(155,28,28,0.25);
}

/* Popups – Premium Style */
.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: 2.5rem;
    border-radius: 20px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.popup-content h2 {
    color: #111827;
    margin-bottom: 1rem;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.popup-btn {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.popup-btn.disconnect,
.popup-btn.ok {
    background: #9b1c1c;
    color: white;
}

.popup-btn.cancel {
    background: #e5e7eb;
    color: #111827;
}

.popup-btn:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .create-main {
        padding: 4rem 1rem 5rem;
    }

    .create-card {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hamburger {
        display: flex;
    }

    .navbar {
        display: none;
    }
}