/* =========================================================
   ADAPT OS
   COMPLETE STYLE SHEET
========================================================= */


/* =========================================================
   1. RESET & ROOT VARIABLES
========================================================= */

:root {
    --primary: #635bff;
    --primary-dark: #5048d8;
    --primary-light: #eeecff;

    --success: #16a34a;
    --success-light: #eaf8ef;

    --danger: #dc2626;
    --danger-light: #fff0f0;

    --warning: #f59e0b;
    --warning-light: #fff7e6;

    --info: #0284c7;
    --info-light: #eaf7ff;

    --background: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f9fafc;

    --text: #171923;
    --text-secondary: #626878;
    --text-muted: #9298a6;

    --border: #e6e8ef;

    --sidebar-width: 260px;

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 20px;

    --shadow-small:
        0 2px 8px rgba(15, 23, 42, 0.04);

    --shadow-medium:
        0 8px 30px rgba(15, 23, 42, 0.07);

    --transition:
        0.25s ease;
}


/* =========================================================
   DARK THEME
========================================================= */
body.dark-theme {
    --background: #0f1117;
    --surface: #171a22;
    --surface-2: #1d2029;
    
    --text: #f5f7fb;
    --text-secondary: #a9afbd;
    --text-muted: #777f91;
    
    --border: #292e39;
    
    --primary-light: #24213f;
    
    --success-light: #10271a;
    --danger-light: #351619;
    --warning-light: #33270f;
    --info-light: #102936;
}


/* =========================================================
   GENERAL RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--text);

    line-height: 1.5;

    min-height: 100vh;

    transition:
        background var(--transition),
        color var(--transition);
}


button,
input,
textarea,
select {

    font: inherit;

}


button {

    border: none;
    cursor: pointer;

}


input,
textarea,
select {

    outline: none;

}


img {

    max-width: 100%;
    display: block;

}


a {

    color: inherit;
    text-decoration: none;

}


.hidden {

    display: none !important;

}


/* =========================================================
   LOADING SCREEN
========================================================= */

.loading-screen {

    position: fixed;

    inset: 0;

    background: var(--background);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    z-index: 9999;

}


.loading-logo {

    width: 210px;
    height: 50px;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);

    color: white;

    font-size: px;
    font-weight: 15px;

    margin-bottom: 20px;

    box-shadow:
        0 15px 40px rgba(99, 91, 255, 0.25);

}


.loading-screen h2 {

    font-size: 24px;

    margin-bottom: 1px;
    margin-top:14px;

}


.loading-screen p {

    color: var(--text-secondary);

}


/* =========================================================
   APP
========================================================= */

.app {

    min-height: 100vh;

}


body {
    overflow-x: hidden;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {

    position: fixed;

    left: 0;
    top: 0;
    bottom: 0;

    width: var(--sidebar-width);

    background: var(--surface);

    border-right: 1px solid var(--border);

    display: flex;

    flex-direction: column;

    z-index: 1000;

    transition:
        transform var(--transition),
        background var(--transition);

}


/* =========================================================
   BRAND
========================================================= */

.brand {

    height: 82px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 20px;

    border-bottom: 1px solid var(--border);

}


.brand-logo {

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border-radius: 50%;

    overflow: hidden;

    background: var(--primary);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 19px;

    font-weight: 800;

}


.brand-logo img {

    width: 100%;
    height: 100%;

    object-fit: cover;

}


.brand-information {

    min-width: 0;

}


.brand-information h1 {

    font-size: 17px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


.brand-information span {

    display: block;

    font-size: 10px;

    color: var(--text-muted);

}


/* =========================================================
   NAVIGATION
========================================================= */

.main-navigation {

    padding: 20px 12px;

    overflow-y: auto;

    flex: 1;

}


.navigation-title {

    font-size: 10px;

    font-weight: 700;

    color: var(--text-muted);

    letter-spacing: 1px;

    padding: 0 10px;

    margin:

        10px 0
        8px;

}


.nav-item {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 11px 12px;

    margin-bottom: 4px;

    border-radius: 10px;

    background: transparent;

    color: var(--text-secondary);

    text-align: left;

    transition: var(--transition);

}


.nav-item:hover {

    background: var(--surface-2);

    color: var(--text);

}


.nav-item.active {

    background: var(--primary-light);

    color: var(--primary);

    font-weight: 600;

}


.nav-icon {

    width: 22px;

    text-align: center;

    font-size: 17px;

}


/* =========================================================
   SIDEBAR BOTTOM
========================================================= */

.sidebar-bottom {

    padding: 15px;

    border-top: 1px solid var(--border);

}


.storage-status {

    margin-bottom: 14px;

}


.storage-header {

    display: flex;

    justify-content: space-between;

    font-size: 11px;

    margin-bottom: 7px;

}


.storage-header span:last-child {

    color: var(--primary);

    font-weight: 700;

}


.storage-bar {

    height: 5px;

    border-radius: 20px;

    background: var(--border);

    overflow: hidden;

    margin-bottom: 7px;

}


.storage-bar div {

    height: 100%;

    width: 0;

    background: var(--primary);

    border-radius: inherit;

    transition: width 0.4s ease;

}


.storage-status small {

    color: var(--text-muted);

    font-size: 9px;

}


.sidebar-theme-button {

    width: 100%;

    padding: 10px;

    display: flex;

    gap: 10px;

    align-items: center;

    border-radius: 9px;

    background: var(--surface-2);

    color: var(--text-secondary);

}


/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {

    margin-left: var(--sidebar-width);

    min-height: 100vh;

}


/* =========================================================
   TOP HEADER
========================================================= */

.top-header {

    height: 82px;

    background: var(--surface);

    border-bottom: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 0 30px;

    position: sticky;

    top: 0;

    z-index: 900;

}


.menu-button {

    display: none;

    width: 40px;
    height: 40px;

    background: var(--surface-2);

    color: var(--text);

    border-radius: 10px;

    font-size: 20px;

}


/* =========================================================
   HEADER SEARCH
========================================================= */

.header-search {

    width: min(420px, 45%);

    height: 42px;

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 0 13px;

    border-radius: 10px;

    background: var(--surface-2);

    border: 1px solid transparent;

}


.header-search:focus-within {

    border-color: var(--primary);

}


.header-search span {

    color: var(--text-muted);

}


.header-search input {

    width: 100%;

    background: transparent;

    border: none;

    color: var(--text);

}


.header-search input::placeholder {

    color: var(--text-muted);

}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {

    display: flex;

    align-items: center;

    gap: 8px;

}


.header-icon-button {

    position: relative;

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: transparent;

    border-radius: 10px;

    color: var(--text-secondary);

    font-size: 17px;

}


.header-icon-button:hover {

    background: var(--surface-2);

}


.notification-count {

    position: absolute;

    top: 2px;
    right: 2px;

    min-width: 16px;
    height: 16px;

    padding: 0 4px;

    border-radius: 20px;

    background: var(--danger);

    color: white;

    font-size: 9px;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* =========================================================
   PROFILE
========================================================= */

.profile-button {

    display: flex;

    align-items: center;

    gap: 9px;

    background: transparent;

    color: var(--text);

    padding: 4px;

    border-radius: 10px;

}


.profile-button:hover {

    background: var(--surface-2);

}


.profile-image {

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--primary);

    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: 700;

    overflow: hidden;

}


.profile-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

}


.profile-details {

    display: flex;

    flex-direction: column;

    text-align: left;

}


.profile-details strong {

    font-size: 12px;

}


.profile-details small {

    font-size: 10px;

    color: var(--text-muted);

}


/* =========================================================
   PAGE CONTAINER
========================================================= */

.page-container {

    max-width: 1500px;

    margin: auto;

    padding: 30px;

}


/* =========================================================
   PAGE
========================================================= */

.page {

    display: none;

    animation: pageFade 0.25s ease;

}


.page.active-page {

    display: block;

}


@keyframes pageFade {

    from {

        opacity: 0;

        transform: translateY(5px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* =========================================================
   PAGE HEADER
========================================================= */

.page-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 28px;

}


.page-header h2 {

    font-size: clamp(25px, 3vw, 34px);

    margin: 5px 0;

}


.page-header p {

    color: var(--text-secondary);

    font-size: 14px;

}


.page-label {

    color: var(--primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.3px;

}


.centered-header {

    text-align: center;

    flex-direction: column;

}


/* =========================================================
   BUTTONS
========================================================= */

.primary-button,
.secondary-button,
.danger-button {

    min-height: 40px;

    padding: 9px 16px;

    border-radius: 9px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    font-weight: 600;

    font-size: 13px;

    transition: var(--transition);

}


.primary-button {

    background: var(--primary);

    color: white;

}


.primary-button:hover {

    background: var(--primary-dark);

    transform: translateY(-1px);

}


.secondary-button {

    background: var(--surface);

    color: var(--text);

    border: 1px solid var(--border);

}


.secondary-button:hover {

    background: var(--surface-2);

    border-color: var(--primary);

    color: var(--primary);

}


.danger-button {

    background: var(--danger-light);

    color: var(--danger);

}


.danger-button:hover {

    background: var(--danger);

    color: white;

}


.text-button {

    background: transparent;

    color: var(--primary);

    font-size: 12px;

    font-weight: 600;

}


/* =========================================================
   WELCOME SECTION
========================================================= */

.welcome-section {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;

}


.welcome-section h2 {

    font-size: clamp(24px, 3vw, 34px);

    margin: 4px 0;

}


.welcome-section p {

    color: var(--text-secondary);

    font-size: 14px;

}


/* =========================================================
   DASHBOARD STATISTICS
========================================================= */

.dashboard-statistics {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;

    margin-bottom: 20px;

}


.stat-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    padding: 19px;

    display: flex;

    gap: 14px;

    align-items: center;

    box-shadow: var(--shadow-small);

}


.stat-icon {

    width: 45px;
    height: 45px;

    border-radius: 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 19px;

}


.balance-icon {

    background: var(--primary-light);

}


.income-icon {

    background: var(--success-light);

    color: var(--success);

}


.expense-icon {

    background: var(--danger-light);

    color: var(--danger);

}


.file-icon {

    background: var(--warning-light);

}


.stat-card span {

    display: block;

    font-size: 11px;

    color: var(--text-muted);

}


.stat-card h3 {

    font-size: 19px;

    margin: 2px 0;

}


.stat-card small {

    font-size: 9px;

    color: var(--text-muted);

}


/* =========================================================
   DASHBOARD GRID
========================================================= */

.dashboard-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;

}


.dashboard-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    padding: 20px;

    box-shadow: var(--shadow-small);

}


.card-heading {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin-bottom: 18px;

}


.card-heading h3 {

    font-size: 16px;

}


.card-label {

    color: var(--text-muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.quick-actions {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

}


.quick-action {

    text-align: left;

    background: var(--surface-2);

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 13px;

    color: var(--text);

    transition: var(--transition);

}


.quick-action:hover {

    transform: translateY(-2px);

    border-color: var(--primary);

}


.quick-action > span {

    display: block;

    font-size: 22px;

    margin-bottom: 8px;

}


.quick-action strong {

    display: block;

    font-size: 12px;

}


.quick-action small {

    color: var(--text-muted);

    font-size: 9px;

}


/* =========================================================
   EMPTY STATES
========================================================= */

.empty-state {

    text-align: center;

    padding: 30px 15px;

    color: var(--text-muted);

}


.empty-state span {

    display: block;

    font-size: 30px;

    margin-bottom: 8px;

}


.empty-state p {

    font-size: 12px;

}


.empty-state h3 {

    color: var(--text);

    font-size: 15px;

    margin-bottom: 4px;

}


.large-empty {

    min-height: 220px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

}


/* =========================================================
   ACTIVITY
========================================================= */

.activity-list {

    max-height: 270px;

    overflow-y: auto;

}


.activity-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 0;

    border-bottom: 1px solid var(--border);

}


.activity-item:last-child {

    border-bottom: none;

}


.activity-icon {

    width: 34px;
    height: 34px;

    border-radius: 9px;

    background: var(--primary-light);

    display: flex;

    align-items: center;
    justify-content: center;

}


.activity-content {

    flex: 1;

}


.activity-content strong {

    display: block;

    font-size: 11px;

}


.activity-content small {

    color: var(--text-muted);

    font-size: 9px;

}


/* =========================================================
   REMINDER PREVIEW
========================================================= */

.reminder-preview {

    max-height: 270px;

    overflow-y: auto;

}


.reminder-preview-item {

    padding: 11px;

    border-radius: 9px;

    background: var(--surface-2);

    margin-bottom: 8px;

}


.reminder-preview-item strong {

    font-size: 12px;

    display: block;

}


.reminder-preview-item small {

    font-size: 9px;

    color: var(--text-muted);

}


/* =========================================================
   FINANCE BARS
========================================================= */

.finance-bars {

    display: flex;

    flex-direction: column;

    gap: 17px;

}


.finance-bar-item > div:first-child {

    display: flex;

    justify-content: space-between;

    margin-bottom: 6px;

    font-size: 11px;

}


.finance-bar-item strong {

    font-size: 11px;

}


.bar {

    height: 8px;

    border-radius: 20px;

    background: var(--border);

    overflow: hidden;

}


.bar div {

    height: 100%;

    width: 0;

    border-radius: inherit;

    transition: width 0.5s ease;

}


#incomeBar {

    background: var(--success);

}


#expenseBar {

    background: var(--danger);

}


/* =========================================================
   LEARNING
========================================================= */

.learning-search {

    max-width: 650px;

    height: 48px;

    margin: 0 auto 25px;

    display: flex;

    align-items: center;

    gap: 10px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 0 15px;

}


.learning-search input {

    width: 100%;

    border: none;

    background: transparent;

    color: var(--text);

}


.subjects-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

}


.subject-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 15px;

    padding: 22px;

    text-align: left;

    color: var(--text);

    transition: var(--transition);

}


.subject-card:hover {

    transform: translateY(-3px);

    border-color: var(--primary);

    box-shadow: var(--shadow-medium);

}


.subject-card > span {

    font-size: 30px;

    display: block;

    margin-bottom: 15px;

}


.subject-card h3 {

    font-size: 15px;

    margin-bottom: 5px;

}


.subject-card p {

    font-size: 11px;

    color: var(--text-secondary);

}


.learning-content {

    margin-top: 20px;

}


.learning-content h2 {

    margin: 20px 0 10px;

}


.learning-content p {

    color: var(--text-secondary);

    margin-bottom: 12px;

}


/* =========================================================
   RESEARCH
========================================================= */

.research-box {

    max-width: 850px;

    margin: 25px auto 10px;

    min-height: 58px;

    padding: 6px 7px 6px 17px;

    display: flex;

    align-items: center;

    gap: 10px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 15px;

    box-shadow: var(--shadow-small);

}


.research-box > span {

    font-size: 18px;

}


.research-box input {

    flex: 1;

    border: none;

    background: transparent;

    color: var(--text);

}


.research-suggestions {

    max-width: 850px;

    margin: 12px auto;

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    align-items: center;

}


.research-suggestions > span {

    color: var(--text-muted);

    font-size: 11px;

}


.research-suggestion {

    padding: 7px 10px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 20px;

    color: var(--text-secondary);

    font-size: 10px;

}


.research-suggestion:hover {

    border-color: var(--primary);

    color: var(--primary);

}


.research-results {

    max-width: 850px;

    margin: 25px auto;

}


.research-welcome {

    text-align: center;

    padding: 70px 20px;

    color: var(--text-muted);

}


.research-welcome > span {

    font-size: 45px;

}


.research-welcome h3 {

    color: var(--text);

    margin: 10px 0 5px;

}


/* =========================================================
   FILE VAULT
========================================================= */

.file-toolbar {

    display: flex;

    gap: 10px;

    margin-bottom: 15px;

}


.file-search {

    flex: 1;

    height: 43px;

    display: flex;

    align-items: center;

    gap: 9px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 0 12px;

}


.file-search input {

    width: 100%;

    border: none;

    background: transparent;

    color: var(--text);

}


.file-toolbar select {

    width: 150px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);

    color: var(--text);

    padding: 0 10px;

}


.file-drop-zone {

    border: 2px dashed var(--border);

    border-radius: 15px;

    min-height: 150px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: var(--text-muted);

    margin-bottom: 20px;

    cursor: pointer;

    transition: var(--transition);

}


.file-drop-zone:hover,
.file-drop-zone.dragover {

    border-color: var(--primary);

    background: var(--primary-light);

}


.file-drop-zone span {

    font-size: 35px;

}


.file-drop-zone h3 {

    color: var(--text);

    margin: 5px 0;

}


.file-drop-zone p {

    font-size: 11px;

}


.file-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 13px;

}


.file-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 13px;

    padding: 15px;

    transition: var(--transition);

}


.file-card:hover {

    border-color: var(--primary);

    transform: translateY(-2px);

}


.file-card-icon {

    width: 45px;
    height: 45px;

    border-radius: 10px;

    background: var(--primary-light);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 21px;

    margin-bottom: 10px;

}


.file-card-name {

    font-size: 12px;

    font-weight: 600;

    word-break: break-word;

    margin-bottom: 4px;

}


.file-card-meta {

    font-size: 9px;

    color: var(--text-muted);

}


.file-card-actions {

    display: flex;

    gap: 5px;

    margin-top: 12px;

}


.file-card-actions button {

    flex: 1;

    padding: 6px;

    border-radius: 7px;

    background: var(--surface-2);

    color: var(--text-secondary);

    font-size: 10px;

}


/* =========================================================
   FINANCE
========================================================= */

.finance-statistics {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 25px;

}


.finance-stat-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 20px;

}


.finance-stat-card span {

    font-size: 11px;

    color: var(--text-muted);

}


.finance-stat-card h3 {

    font-size: 23px;

    margin-top: 5px;

}


.finance-section {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 15px;

    padding: 20px;

    margin-bottom: 20px;

}


.section-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 17px;

}


.section-heading h3 {

    font-size: 17px;

}


.accounts-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

}


.account-card {

    padding: 15px;

    background: var(--surface-2);

    border: 1px solid var(--border);

    border-radius: 12px;

}


.account-card-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.account-card strong {

    font-size: 13px;

}


.account-card small {

    color: var(--text-muted);

    font-size: 9px;

}


.account-balance {

    font-size: 20px;

    font-weight: 700;

    margin: 10px 0;

}


.transaction-table-container {

    width: 100%;

    overflow-x: auto;

}


.transaction-table {

    width: 100%;

    border-collapse: collapse;

    min-width: 700px;

}


.transaction-table th,
.transaction-table td {

    padding: 12px 9px;

    text-align: left;

    border-bottom: 1px solid var(--border);

    font-size: 11px;

}


.transaction-table th {

    color: var(--text-muted);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}


.income-text {

    color: var(--success);

    font-weight: 700;

}


.expense-text {

    color: var(--danger);

    font-weight: 700;

}


/* =========================================================
   REMINDERS
========================================================= */

.reminder-list {

    max-width: 850px;

}


.reminder-item {

    display: flex;

    align-items: center;

    gap: 15px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 13px;

    padding: 15px;

    margin-bottom: 10px;

}


.reminder-check {

    width: 25px;
    height: 25px;

    border: 2px solid var(--border);

    border-radius: 50%;

    background: transparent;

}


.reminder-info {

    flex: 1;

}


.reminder-info strong {

    display: block;

    font-size: 13px;

}


.reminder-info small {

    color: var(--text-muted);

    font-size: 10px;

}


.reminder-actions {

    display: flex;

    gap: 5px;

}


.reminder-actions button {

    padding: 7px 9px;

    border-radius: 7px;

    background: var(--surface-2);

    color: var(--text-secondary);

}


/* =========================================================
   MEDIA GALLERY
========================================================= */

.media-gallery {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;

}


.media-card {

    position: relative;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 13px;

    background: var(--surface);

    border: 1px solid var(--border);

}


.media-card img,
.media-card video {

    width: 100%;
    height: 100%;

    object-fit: cover;

}


.media-card-overlay {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 25px 10px 10px;

    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, 0.7)
        );

    color: white;

}


.media-card-overlay strong {

    font-size: 11px;

}


.media-delete {

    position: absolute;

    top: 7px;
    right: 7px;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.6);

    color: white;

}


/* =========================================================
   NOTES
========================================================= */

.notes-layout {

    display: grid;

    grid-template-columns: 280px 1fr;

    gap: 15px;

    min-height: 550px;

}


.notes-list {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 10px;

    overflow-y: auto;

}


.note-list-item {

    padding: 12px;

    border-radius: 9px;

    cursor: pointer;

    margin-bottom: 5px;

}


.note-list-item:hover,
.note-list-item.active {

    background: var(--primary-light);

}


.note-list-item strong {

    display: block;

    font-size: 12px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


.note-list-item small {

    color: var(--text-muted);

    font-size: 9px;

}


.note-editor {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 20px;

    display: flex;

    flex-direction: column;

}


.note-editor input {

    border: none;

    border-bottom: 1px solid var(--border);

    background: transparent;

    color: var(--text);

    padding: 10px 0;

    font-size: 21px;

    font-weight: 700;

    margin-bottom: 15px;

}


.note-editor textarea {

    flex: 1;

    min-height: 400px;

    resize: vertical;

    border: none;

    background: transparent;

    color: var(--text);

    line-height: 1.7;

}


.note-editor-actions {

    display: flex;

    gap: 8px;

    justify-content: flex-end;

}


/* =========================================================
   TASKS
========================================================= */

.task-input {

    display: flex;

    max-width: 750px;

    gap: 8px;

    margin-bottom: 18px;

}


.task-input input {

    flex: 1;

    height: 43px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--surface);

    color: var(--text);

    padding: 0 13px;

}


.task-filters {

    display: flex;

    gap: 6px;

    margin-bottom: 15px;

}


.task-filter {

    padding: 7px 12px;

    border-radius: 20px;

    background: var(--surface);

    border: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 10px;

}


.task-filter.active {

    background: var(--primary);

    color: white;

    border-color: var(--primary);

}


.task-list {

    max-width: 800px;

}


.task-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 13px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 10px;

    margin-bottom: 7px;

}


.task-item input {

    width: 18px;
    height: 18px;

}


.task-item-text {

    flex: 1;

    font-size: 12px;

}


.task-item.completed .task-item-text {

    text-decoration: line-through;

    color: var(--text-muted);

}


.task-delete {

    background: transparent;

    color: var(--danger);

}


/* =========================================================
   REPORTS
========================================================= */

.report-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

}


.report-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 20px;

}


.report-card > span {

    font-size: 28px;

}


.report-card h3 {

    font-size: 14px;

    margin: 10px 0 5px;

}


.report-card p {

    color: var(--text-secondary);

    font-size: 10px;

    min-height: 45px;

    margin-bottom: 10px;

}


.report-output {

    margin-top: 20px;

    padding: 20px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 14px;

}


.report-output pre {

    white-space: pre-wrap;

    font-family: inherit;

    font-size: 12px;

    color: var(--text-secondary);

}


/* =========================================================
   EDITOR
========================================================= */

.editor-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 17px;

}


.editor-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 15px;

    padding: 22px;

}


.editor-card-heading {

    display: flex;

    gap: 12px;

    align-items: flex-start;

    margin-bottom: 20px;

}


.editor-card-heading > span {

    font-size: 24px;

}


.editor-card-heading h3 {

    font-size: 15px;

}


.editor-card-heading p {

    color: var(--text-muted);

    font-size: 10px;

}


.editor-card label {

    display: block;

    font-size: 10px;

    font-weight: 600;

    color: var(--text-secondary);

    margin: 13px 0 5px;

}


.editor-card input[type="text"],
.editor-card input[type="color"],
.editor-card select {

    width: 100%;

    min-height: 40px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--surface-2);

    color: var(--text);

    padding: 8px 10px;

}


.editor-card input[type="color"] {

    padding: 3px;

    height: 45px;

    cursor: pointer;

}


.logo-preview {

    width: 100px;
    height: 100px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: var(--primary);

    color: white;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 35px;

    font-weight: 800;

    overflow: hidden;

}


.logo-preview img {

    width: 100%;
    height: 100%;

    object-fit: cover;

}


.appearance-options {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 8px;

}


.appearance-option {

    padding: 12px;

    background: var(--surface-2);

    color: var(--text-secondary);

    border: 1px solid var(--border);

    border-radius: 9px;

}


.appearance-option.active {

    border-color: var(--primary);

    color: var(--primary);

    background: var(--primary-light);

}


.occupation-preview {

    padding: 18px;

    background: var(--primary-light);

    border-radius: 12px;

    margin-bottom: 15px;

}


.occupation-preview h4 {

    color: var(--primary);

    margin-bottom: 5px;

}


.occupation-preview p {

    color: var(--text-secondary);

    font-size: 11px;

}


/* =========================================================
   SETTINGS
========================================================= */

.settings-list {

    max-width: 850px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 15px;

    overflow: hidden;

}


.setting-item {

    padding: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-bottom: 1px solid var(--border);

}


.setting-item:last-child {

    border-bottom: none;

}


.setting-item h3 {

    font-size: 14px;

    margin-bottom: 3px;

}


.setting-item p {

    color: var(--text-secondary);

    font-size: 10px;

}


.danger-setting {

    background: var(--danger-light);

}


/* =========================================================
   MODALS
========================================================= */

.modal {

    position: fixed;

    inset: 0;

    background: rgba(15, 23, 42, 0.55);

    backdrop-filter: blur(5px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 3000;

}


.modal-content {

    width: min(500px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    background: var(--surface);

    border-radius: 18px;

    padding: 25px;

    position: relative;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.2);

    animation: modalIn 0.2s ease;

}


@keyframes modalIn {

    from {

        opacity: 0;

        transform: scale(0.96) translateY(8px);

    }

    to {

        opacity: 1;

        transform: scale(1) translateY(0);

    }

}


.small-modal {

    max-width: 400px;

}


.modal-close {

    position: absolute;

    top: 15px;
    right: 15px;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: var(--surface-2);

    color: var(--text-secondary);

    font-size: 20px;

}


.modal-heading {

    text-align: center;

    margin-bottom: 20px;

}


.modal-heading > span {

    display: block;

    font-size: 32px;

    margin-bottom: 5px;

}


.modal-heading h2 {

    font-size: 20px;

}


.modal-heading p {

    color: var(--text-secondary);

    font-size: 11px;

}


.modal-content label {

    display: block;

    font-size: 10px;

    font-weight: 600;

    margin: 13px 0 5px;

    color: var(--text-secondary);

}


.modal-content input,
.modal-content select {

    width: 100%;

    height: 42px;

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 0 10px;

    background: var(--surface-2);

    color: var(--text);

}


.modal-actions {

    display: flex;

    justify-content: flex-end;

    gap: 8px;

    margin-top: 20px;

}


/* =========================================================
   TRANSACTION TYPE
========================================================= */

.transaction-type-buttons {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 7px;

}


.transaction-type {

    padding: 10px;

    border-radius: 8px;

    background: var(--surface-2);

    color: var(--text-secondary);

}


.transaction-type.active {

    background: var(--primary-light);

    color: var(--primary);

    font-weight: 700;

}


/* =========================================================
   FILE PREVIEW
========================================================= */

.file-preview-modal {

    width: min(900px, 100%);

}


.file-preview-content {

    min-height: 300px;

    border-radius: 10px;

    overflow: hidden;

    background: var(--surface-2);

    display: flex;

    align-items: center;

    justify-content: center;

}


.file-preview-content img {

    max-height: 65vh;

    object-fit: contain;

}


.file-preview-content video {

    width: 100%;

    max-height: 65vh;

}


.file-preview-content iframe {

    width: 100%;

    height: 65vh;

    border: none;

}


/* =========================================================
   NOTIFICATION PANEL
========================================================= */

.notification-panel {

    position: fixed;

    top: 72px;
    right: 25px;

    width: min(360px, calc(100vw - 30px));

    max-height: 500px;

    overflow-y: auto;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow: var(--shadow-medium);

    z-index: 2000;

}


.notification-panel-header {

    padding: 15px;

    display: flex;

    justify-content: space-between;

    border-bottom: 1px solid var(--border);

}


.notification-panel-header h3 {

    font-size: 14px;

}


.notification-panel-header button {

    background: transparent;

    color: var(--primary);

    font-size: 10px;

}


.notification-item {

    padding: 12px 15px;

    display: flex;

    gap: 10px;

    border-bottom: 1px solid var(--border);

}


.notification-item.unread {

    background: var(--primary-light);

}


.notification-item strong {

    display: block;

    font-size: 11px;

}


.notification-item small {

    font-size: 9px;

    color: var(--text-muted);

}


/* =========================================================
   SIDEBAR OVERLAY
========================================================= */

.sidebar-overlay {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    z-index: 950;

}


/* =========================================================
   TOAST
========================================================= */

.toast {

    position: fixed;

    bottom: 25px;
    right: 25px;

    max-width: 350px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 16px;

    background: var(--text);

    color: var(--surface);

    border-radius: 10px;

    box-shadow: var(--shadow-medium);

    z-index: 5000;

    transform:
        translateY(30px);

    opacity: 0;

    pointer-events: none;

    transition: 0.3s ease;

}


.toast.show {

    opacity: 1;

    transform:
        translateY(0);

}


.toast span:first-child {

    width: 20px;
    height: 20px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--success);

    color: white;

    font-size: 10px;

}


#toastMessage {

    font-size: 11px;

}


/* =========================================================
   SCROLLBARS
========================================================= */

::-webkit-scrollbar {

    width: 6px;
    height: 6px;

}


::-webkit-scrollbar-track {

    background: transparent;

}


::-webkit-scrollbar-thumb {

    background: var(--border);

    border-radius: 20px;

}


::-webkit-scrollbar-thumb:hover {

    background: var(--text-muted);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    :root {

        --sidebar-width: 230px;

    }


    .dashboard-statistics {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .subjects-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }


    .file-grid,
    .media-gallery {

        grid-template-columns:
            repeat(3, 1fr);

    }


    .report-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .accounts-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 850px) {

    .sidebar {

        transform:
            translateX(-100%);

        box-shadow:
            10px 0 30px rgba(0, 0, 0, 0.1);

    }


    .sidebar.open {

        transform:
            translateX(0);

    }


    .sidebar-overlay.active {

        display: block;

    }


    .main-content {

        margin-left: 0;

    }


    .menu-button {

        display: flex;

        align-items: center;
        justify-content: center;

    }


    .top-header {

        padding: 0 18px;

    }


    .header-search {

        flex: 1;

        width: auto;

    }


    .profile-details {

        display: none;

    }


    .dashboard-grid {

        grid-template-columns:
            1fr;

    }


    .editor-grid {

        grid-template-columns:
            1fr;

    }


    .notes-layout {

        grid-template-columns:
            220px 1fr;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .page-container {

        padding: 18px 13px;

    }


    .top-header {

        height: 68px;

        gap: 7px;

    }


    .header-search {

        height: 38px;

    }


    .header-actions {

        gap: 2px;

    }


    .header-icon-button {

        width: 35px;
        height: 35px;

    }


    .profile-button {

        display: none;

    }


    .welcome-section {

        flex-direction: column;

        align-items: flex-start;

    }


    .welcome-section .primary-button {

        width: 100%;

    }


    .dashboard-statistics {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 9px;

    }


    .stat-card {

        padding: 13px;

        gap: 9px;

    }


    .stat-icon {

        width: 37px;
        height: 37px;

        font-size: 15px;

    }


    .stat-card h3 {

        font-size: 15px;

    }


    .stat-card span {

        font-size: 9px;

    }


    .dashboard-grid {

        gap: 12px;

    }


    .dashboard-card {

        padding: 14px;

    }


    .quick-actions {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .subjects-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 9px;

    }


    .subject-card {

        padding: 15px;

    }


    .subject-card > span {

        font-size: 25px;

    }


    .subject-card h3 {

        font-size: 13px;

    }


    .subject-card p {

        font-size: 9px;

    }


    .page-header {

        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 20px;

    }


    .page-header .primary-button,
    .page-header .secondary-button {

        width: 100%;

    }


    .research-box {

        flex-wrap: wrap;

        padding: 10px;

    }


    .research-box input {

        min-width: 150px;

    }


    .research-box .primary-button {

        width: 100%;

    }


    .file-toolbar {

        flex-direction: column;

    }


    .file-toolbar select {

        width: 100%;

        height: 42px;

    }


    .file-grid,
    .media-gallery {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 8px;

    }


    .finance-statistics {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 9px;

    }


    .finance-stat-card {

        padding: 14px;

    }


    .finance-stat-card h3 {

        font-size: 17px;

    }


    .accounts-grid {

        grid-template-columns:
            1fr;

    }


    .finance-section {

        padding: 13px;

        overflow: hidden;

    }


    .section-heading {

        align-items: flex-start;

    }


    .notes-layout {

        grid-template-columns:
            1fr;

    }


    .notes-list {

        max-height: 200px;

    }


    .note-editor {

        min-height: 500px;

    }


    .task-input {

        flex-direction: column;

    }


    .task-input .primary-button {

        width: 100%;

    }


    .report-grid {

        grid-template-columns:
            1fr;

    }


    .setting-item {

        align-items: flex-start;

        flex-direction: column;

    }


    .setting-item button {

        width: 100%;

    }


    .editor-card {

        padding: 16px;

    }


    .modal {

        padding: 10px;

        align-items: flex-end;

    }


    .modal-content {

        max-height: 92vh;

        border-radius: 18px 18px 10px 10px;

        padding: 20px;

    }


    .toast {

        left: 13px;
        right: 13px;
        bottom: 15px;

        max-width: none;

    }


    .notification-panel {

        top: 63px;

        right: 10px;

    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .dashboard-statistics {

        grid-template-columns:
            1fr;

    }


    .subjects-grid {

        grid-template-columns:
            1fr;

    }


    .file-grid,
    .media-gallery {

        grid-template-columns:
            1fr 1fr;

    }


    .quick-actions {

        grid-template-columns:
            1fr;

    }


    .research-suggestions {

        flex-direction: column;

        align-items: flex-start;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;

    }

}


/* =========================================================
   MATHEMATICS PRACTICE
========================================================= */

.math-topics-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(240px, 1fr)
    );
    gap: 18px;
    margin-top: 25px;
}

.math-topic-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--card-background);
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: 0.25s ease;
}

.math-topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.math-topic-icon {
    font-size: 32px;
    min-width: 45px;
}

.math-topic-card h3 {
    margin: 0 0 5px;
}

.math-topic-card p {
    margin: 0;
    opacity: 0.7;
    line-height: 1.5;
}

.topic-arrow {
    margin-left: auto;
    font-size: 22px;
}

.lesson-card {
    padding: 22px;
    margin: 18px 0;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-background);
}

.lesson-card h3,
.lesson-card h4 {
    margin-top: 0;
}

.lesson-card li {
    margin: 8px 0;
}

.lesson-intro {
    font-size: 17px;
    line-height: 1.7;
}

.key-point {
    padding: 18px;
    margin: 20px 0;
    border-radius: 15px;
    background: var(--accent-color);
    color: white;
    line-height: 1.6;
}

.math-example {
    padding: 15px;
    margin: 12px 0;
    border-radius: 12px;
    background: var(--input-background);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.practice-progress {
    width: 100%;
    height: 8px;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--border-color);
}

.practice-progress-bar {
    height: 100%;
    transition: width 0.3s ease;
    background: var(--accent-color);
}

.practice-card {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: var(--card-background);
}

.question-number {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.6;
    text-transform: uppercase;
}

.practice-question {
    margin: 18px 0 25px;
    font-size: 23px;
    line-height: 1.5;
}

.practice-options {
    display: grid;
    gap: 12px;
}

.practice-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: transparent;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

.practice-option:hover {
    border-color: var(--accent-color);
}

.practice-option.selected {
    border-color: var(--accent-color);
    background: var(--accent-color-light);
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--input-background);
    font-weight: 700;
}

.practice-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.practice-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.practice-results {
    max-width: 700px;
    margin: 40px auto;
    padding: 35px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: var(--card-background);
    text-align: center;
}

.results-icon {
    display: block;
    margin-bottom: 15px;
    font-size: 55px;
}

.score-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    margin: 30px auto;
    border: 8px solid var(--accent-color);
    border-radius: 50%;
}

.score-circle strong {
    font-size: 34px;
}

.score-circle span {
    opacity: 0.7;
}

.results-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.review-list {
    display: grid;
    gap: 18px;
    margin-top: 25px;
}

.review-card {
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-background);
}

.review-correct {
    border-left: 5px solid #22c55e;
}

.review-wrong {
    border-left: 5px solid #ef4444;
}

.review-question {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.review-explanation {
    margin-top: 15px;
    padding: 14px;
    border-radius: 12px;
    background: var(--input-background);
    line-height: 1.5;
}


/* Mobile */

@media (max-width: 600px) {

    .math-topics-grid {
        grid-template-columns: 1fr;
    }

    .practice-card,
    .practice-results {
        padding: 20px;
    }

    .practice-question {
        font-size: 20px;
    }

    .review-question {
        flex-direction: column;
    }

    .results-actions {
        flex-direction: column;
    }

    .results-actions button {
        width: 100%;
    }

}

.logo{
    border-radius:20px;
    box-shadow:0 4px 4px 4px rgba(0, 0, 0, 0.2);
    border:4px solid blue;
}


/* =========================================================
   WHATSAPP HELP BUTTON
========================================================= */

.whatsapp-help-button {
    position: fixed;
    
    right: 22px;
    bottom: 22px;
    
    z-index: 99999;
    
    display: flex;
    align-items: center;
    gap: 9px;
    
    padding: 10px 15px 10px 10px;
    
    text-decoration: none;
    
    background: #ffffff;
    color: #222222;
    
    border-radius: 50px;
    
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.16),
        0 2px 8px rgba(0, 0, 0, 0.08);
    
    font-size: 14px;
    font-weight: 700;
    
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.whatsapp-help-button:hover {
    transform: translateY(-4px);
    
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.20),
        0 4px 10px rgba(0, 0, 0, 0.10);
}


/* WhatsApp Logo */

.whatsapp-icon {
    width: 31px;
    height: 31px;
    
    display: block;
    
    fill: #25D366;
    
    flex-shrink: 0;
}


/* Text */

.whatsapp-help-text {
    white-space: nowrap;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
    
    .whatsapp-help-button {
        right: 15px;
        bottom: 15px;
        
        width: 54px;
        height: 54px;
        
        padding: 0;
        
        justify-content: center;
        
        border-radius: 50%;
    }
    
    .whatsapp-icon {
        width: 34px;
        height: 34px;
    }
    
    .whatsapp-help-text {
        display: none;
    }
}


/* =========================================================
   IDEA SPARK — FLOATING FEATURE
========================================================= */

#ideaSpark {
    position: fixed;
    right: 22px;
    bottom: 92px;

    z-index: 9998;

    font-family: inherit;
}


/* =========================================================
   FLOATING IDEA SPARK BUTTON
========================================================= */

.idea-spark-button {
    width: 58px;
    height: 58px;

    border: none;
    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #8b7cff,
            #635bff
        );

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(99, 91, 255, 0.35),
        0 0 0 0 rgba(99, 91, 255, 0.35);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    animation: ideaSparkPulse 3s infinite;
}


.idea-spark-button:hover {
    transform: translateY(-4px) scale(1.04);

    box-shadow:
        0 15px 35px rgba(99, 91, 255, 0.45);
}


.idea-spark-button:active {
    transform: scale(0.94);
}


/* Bulb */

.idea-spark-icon {
    font-size: 27px;

    line-height: 1;

    filter:
        drop-shadow(0 2px 5px rgba(0, 0, 0, 0.20));
}


/* Label */

.idea-spark-label {
    position: absolute;

    right: 68px;

    top: 50%;

    transform:
        translateY(-50%)
        translateX(8px);

    opacity: 0;

    pointer-events: none;

    white-space: nowrap;

    background: #151515;
    color: #ffffff;

    padding: 8px 12px;

    border-radius: 10px;

    font-size: 12px;
    font-weight: 700;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.18);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.idea-spark-button:hover .idea-spark-label {
    opacity: 1;

    transform:
        translateY(-50%)
        translateX(0);
}


/* =========================================================
   PULSE ANIMATION
========================================================= */

@keyframes ideaSparkPulse {

    0% {
        box-shadow:
            0 10px 30px rgba(99, 91, 255, 0.35),
            0 0 0 0 rgba(99, 91, 255, 0.35);
    }

    50% {
        box-shadow:
            0 10px 30px rgba(99, 91, 255, 0.35),
            0 0 0 10px rgba(99, 91, 255, 0);
    }

    100% {
        box-shadow:
            0 10px 30px rgba(99, 91, 255, 0.35),
            0 0 0 0 rgba(99, 91, 255, 0);
    }

}


/* =========================================================
   IDEA SPARK PANEL
========================================================= */

.idea-spark-panel {
    position: absolute;

    right: 0;

    bottom: 72px;

    width: 330px;

    background:
        rgba(255, 255, 255, 0.96);

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(15px)
        scale(0.96);

    transform-origin:
        bottom right;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}


/* Open state */

.idea-spark-panel.show {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   PANEL HEADER
========================================================= */

.idea-spark-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 16px 17px;

    border-bottom:
        1px solid rgba(0, 0, 0, 0.07);
}


.idea-spark-title {

    display: flex;

    align-items: center;

    gap: 11px;
}


.idea-spark-title-icon {

    width: 40px;
    height: 40px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(99, 91, 255, 0.12);

    font-size: 21px;
}


.idea-spark-title strong {

    display: block;

    font-size: 15px;

    color: #171717;
}


.idea-spark-title small {

    display: block;

    margin-top: 3px;

    font-size: 11px;

    color: #777;
}


/* Close */

.idea-spark-close {

    width: 30px;
    height: 30px;

    border: none;

    background: transparent;

    color: #777;

    font-size: 25px;

    line-height: 1;

    border-radius: 50%;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.idea-spark-close:hover {

    background:
        rgba(0, 0, 0, 0.06);

    color: #111;
}


/* =========================================================
   IDEA CONTENT
========================================================= */

.idea-spark-content {

    padding: 22px 19px 18px;
}


.idea-spark-category {

    display: inline-block;

    padding: 5px 9px;

    border-radius: 20px;

    background:
        rgba(99, 91, 255, 0.10);

    color: #635bff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.8px;
}


.idea-spark-content h3 {

    margin: 15px 0 9px;

    font-size: 21px;

    line-height: 1.25;

    color: #171717;
}


.idea-spark-content p {

    margin: 0;

    color: #666;

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   ACTION
========================================================= */

.idea-spark-actions {

    padding: 0 19px 19px;
}


.idea-spark-generate {

    width: 100%;

    border: none;

    border-radius: 12px;

    padding: 12px 15px;

    background:
        linear-gradient(
            135deg,
            #635bff,
            #8178ff
        );

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.idea-spark-generate:hover {

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(99, 91, 255, 0.25);
}


.idea-spark-generate:active {

    transform: scale(0.98);
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode .idea-spark-panel {

    background:
        rgba(25, 25, 30, 0.97);

    border-color:
        rgba(255, 255, 255, 0.08);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45);
}


body.dark-mode .idea-spark-title strong {

    color: #ffffff;
}


body.dark-mode .idea-spark-title small {

    color: #999;
}


body.dark-mode .idea-spark-content h3 {

    color: #ffffff;
}


body.dark-mode .idea-spark-content p {

    color: #aaa;
}


body.dark-mode .idea-spark-close {

    color: #aaa;
}


body.dark-mode .idea-spark-close:hover {

    background:
        rgba(255, 255, 255, 0.08);

    color: #ffffff;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    #ideaSpark {

        right: 15px;

        bottom: 82px;
    }


    .idea-spark-button {

        width: 54px;
        height: 54px;
    }


    .idea-spark-icon {

        font-size: 25px;
    }


    .idea-spark-label {

        display: none;
    }


    .idea-spark-panel {

        position: fixed;

        right: 15px;

        bottom: 146px;

        width:
            calc(100vw - 30px);

        max-width: 330px;
    }

}