/* =========================
   LearnFlow Theme - Full CSS
   ========================= */

/* ---------- Body & Global ---------- */
body {
    background: #f5f7fa;
    font-family: "Poppins", sans-serif;
    color: #2d3748;
    margin: 0;
    overflow-x: hidden;
}

/* ---------- HEADER ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, #544dd1 0%, #7c3aed 100%);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #baa1a1 0%, #4f46e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: "Roboto Slab", serif;
    color: #ffffff;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 240px;
    height: calc(100vh - 70px);
    background: linear-gradient(135deg, #544dd1 0%, #7c3aed 100%);
    padding: 20px 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    background: linear-gradient(135deg, #473dfd 0%, #7c3aed 100%);
    transition: all 0.3s ease;
}

.sidebar a:hover,
.sidebar a.active-tab {
    background: linear-gradient(135deg, #6d5fed 0%, #9c75ff 100%);
    transform: translateY(-2px);
}

/* ---------- MAIN IFRAME ---------- */
.main-frame {
    position: fixed;
    top: 70px;
    left: 240px;
    width: calc(100% - 240px);
    height: calc(100vh - 70px);
    border: none;
    background-color: white;
    padding: 20px;
}

/* ---------- LEFT FIXED ACTIONS ---------- */
.left-fixed-actions {
    position: fixed;
    left: 15px;
    bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.left-action-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.left-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* ---------- CUSTOMER CARE PANEL ---------- */
#supportPanel {
    display: none;
    position: fixed;
    top: 100px;
    right: 30px;
    width: 320px;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    font-family: "Poppins", sans-serif;
    z-index: 9999;
}

#supportPanel h3 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
}

#supportPanel p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

#supportPanel a {
    color: #ffd966;
    text-decoration: underline;
}

#supportPanel button {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #4f46e5;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

#supportPanel button:hover {
    background: #e0e7ff;
}

/* ---------- Sections, Cards, Forms ---------- */
.section {
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

h2, h3 {
    font-family: "Roboto Slab", serif;
    color: #4f46e5;
    margin-bottom: 15px;
}

ul {
    padding-left: 20px;
    margin-top: 10px;
}

ul li {
    margin-bottom: 8px;
}

input, select, textarea, button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px 12px;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: "Poppins", sans-serif;
}

button {
    background: linear-gradient(135deg, #ffde59 0%, #ffb347 100%);
    color: #2d3748;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 71, 0.5);
}

/* ---------- Responsive ---------- */
@media(max-width: 768px) {
    .sidebar { width: 200px; }
    .main-frame { left: 200px; width: calc(100% - 200px); }
    #supportPanel { width: 280px; right: 20px; }
    .left-fixed-actions { left: 10px; bottom: 10px; }
}
