* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f4f6f9;
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    position: fixed;
    left: 0;
    top: 0;
    color: white;
    padding-top: 25px;
    transition: all 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    z-index: 1000;
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo h2 {
    font-weight: 600;
    letter-spacing: 1px;
}

.logo small {
    font-size: 12px;
    color: #94a3b8;
}

/* MENU */
.menu {
    list-style: none;
    padding: 0 15px;
}

.menu li {
    margin-bottom: 8px;
}

.menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu li a i {
    width: 20px;
    text-align: center;
}

/* Hover */
.menu li a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    transform: translateX(5px);
}

/* Active */
.menu li.active a {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    box-shadow: 0 4px 15px rgba(59,130,246,0.4);
}

/* ================= TOPBAR ================= */
.topbar {
    margin-left: 260px;
    height: 60px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.topbar h3 {
    font-weight: 500;
}

/* Hamburger */
.menu-toggle {
    display: none;
    font-size: 20px;
    cursor: pointer;
}

/* ================= CONTENT ================= */
.content {
    margin-left: 260px;
    padding: 30px;
    transition: all 0.3s ease;
}

.welcome-card {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(37,99,235,0.3);
}

.card-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ================= FORM (form-card) ================= */
.form-card {
    background: white;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(2,6,23,0.06);
    max-width: 820px;
    margin: 0 auto 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* utility: left-align form inside the .content area */
.form-card.align-left {
    margin: 0 0 24px; /* left-aligned instead of centered */
}

/* small screen adjustments for form */
.form-card h2 {
    margin: 0 0 18px;
    font-size: 20px;
    color: #0f172a;
    font-weight: 600;
}
.form-card form {
    display: block;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.form-group label {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
    background: #f8fafc;
    border: 1px solid #e6e9ee;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #3b82f6;
    box-shadow: 0 6px 20px rgba(59,130,246,0.12);
    transform: translateY(-1px);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37,99,235,0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary i { margin-right: 6px; }
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37,99,235,0.22);
}

/* small screen adjustments for form */
@media (min-width: 700px) {
    .form-card .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .form-card .form-actions {
        display: flex;
        justify-content: flex-end;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {

    .sidebar {
        left: -260px;
    }

    .sidebar.active {
        left: 0;
    }

    .topbar {
        margin-left: 0;
    }

    .content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }
}

/* ===== SUBMENU STYLE ===== */

.has-submenu > a {
    justify-content: space-between;
}

.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 35px;
}

.submenu li {
    margin: 6px 0;
}

.submenu li a {
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #cbd5e1;
}

.submenu li a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

/* submenu open */
.has-submenu.open .submenu {
    max-height: 500px;
}

/* rotate arrow */
.arrow {
    transition: 0.3s;
}

.has-submenu.open .arrow {
    transform: rotate(180deg);
}

