
        * { 
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        html, body {
            width: 100%;
            max-width: 100%;
            background-color: #f0f2f5;
            color: #333;
        }
        body {
            padding: 8px;
        }
        .container {
            max-width: 1100px;
            margin: 0 auto;
            display: none;
            width: 100%;
            box-sizing: border-box;
        }
        /* PUBLIC CONTENT HOME — shown only while the user is signed out */
        .public-home {
            max-width: 1100px;
            margin: 15px auto 25px;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            overflow: hidden;
        }
        .public-hero {
            padding: 32px 24px;
            background: linear-gradient(135deg, #f7f0ff, #eef4ff);
            text-align: center;
        }
        .public-hero h1 { font-size: 30px; color: #4A00E0; margin-bottom: 10px; }
        .public-hero p { max-width: 760px; margin: 0 auto 18px; line-height: 1.65; color: #444; font-size: 15px; }
        .public-cta {
            display: inline-block;
            background: #4A00E0;
            color: #fff;
            padding: 11px 22px;
            border-radius: 7px;
            text-decoration: none;
            font-weight: 700;
            margin: 4px;
        }
        .public-cta.secondary { background: #fff; color: #4A00E0; border: 1px solid #4A00E0; }
        .public-content { padding: 25px; }
        .public-content h2 { text-align: center; color: #333; margin-bottom: 16px; font-size: 22px; }
        .public-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
        .public-card { border: 1px solid #e1e5ea; border-radius: 9px; padding: 17px; background: #fafbfc; }
        .public-card h3 { color: #4A00E0; font-size: 16px; margin-bottom: 7px; }
        .public-card p { color: #555; font-size: 13px; line-height: 1.55; }
        .public-links { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; font-size: 13px; }
        .public-links a { color: #4A00E0; margin: 0 6px; }
        @media screen and (max-width: 700px) {
            .public-hero h1 { font-size: 24px; }
            .public-hero, .public-content { padding: 20px 15px; }
            .public-grid { grid-template-columns: 1fr; }
        }

        .login-container {
            max-width: 400px;
            margin: 60px auto;
            text-align: center;
            background: white;
            padding: 30px 20px;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            width: 90%;
        }
        .login-btn {
            background: #4285F4;
            color: white;
            border: none;
            padding: 12px 20px;
            font-size: 16px;
            font-weight: bold;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 20px;
            width: 100%;
            transition: 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .login-btn:hover { background: #357ae8; }
        
      /* =========================================================
   ROOMMATE EXPENSES - RESPONSIVE NAVBAR
   ========================================================= */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: linear-gradient(135deg, #7c1fe8, #4a00e0);
    color: #ffffff;

    padding: 10px 14px;
    margin-bottom: 15px;

    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    min-height: 58px;

    gap: 15px;
}


/* =========================================================
   LOGO / TITLE
   ========================================================= */

header h2 {
    margin: 0;
    padding: 0;

    font-size: 18px;
    font-weight: 800;

    color: #ffffff;
    white-space: nowrap;

    letter-spacing: 0.2px;
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    position: relative;

    flex-wrap: nowrap;
}


/* =========================================================
   LANGUAGE
   ========================================================= */

.lang-select-section {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    background: rgba(255, 255, 255, 0.15);

    padding: 5px 7px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 7px;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    white-space: nowrap;
}


.lang-select-section label {
    margin: 0;

    font-size: 14px;
    line-height: 1;
}


.lang-select-section select {
    height: 28px;

    padding: 3px 22px 3px 7px;

    border: none;
    border-radius: 5px;

    outline: none;

    background: #ffffff;
    color: #333333;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   MONTH / YEAR FILTER
   ========================================================= */

.month-filter-section {
    display: flex;
    align-items: center;
    gap: 5px;

    background: rgba(255, 255, 255, 0.15);

    padding: 5px 7px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 7px;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    white-space: nowrap;
}


.month-filter-section label {
    margin: 0;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}


.month-filter-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}


.month-filter-section select {
    height: 28px;

    padding: 3px 18px 3px 6px;

    border: none;
    border-radius: 5px;

    outline: none;

    background: #ffffff;
    color: #333333;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   USER PROFILE
   ========================================================= */

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;
}


.user-info img {
    width: 34px;
    height: 34px;

    display: block;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid rgba(255, 255, 255, 0.8);

    background: #ffffff;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


.user-info span {
    display: none !important;
}


/* =========================================================
   USER MANUAL BUTTON
   ========================================================= */

.navbar-help-btn {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 7px;

    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

    transition: all 0.2s ease;
}


.navbar-help-btn:hover {
    background: rgba(255, 255, 255, 0.22);

    transform: translateY(-1px);
}


/* =========================================================
   MENU BUTTON
   ========================================================= */

.three-dots-btn {
    width: 38px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 7px;

    background: transparent;
    color: #ffffff;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    transition: background 0.2s ease;
}


.three-dots-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}


/* =========================================================
   NAVIGATION DROPDOWN
   ========================================================= */

.nav-menu-dropdown {
    display: none;

    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    width: 230px;

    background: #ffffff;

    border-radius: 10px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.22);

    overflow: hidden;

    z-index: 1005;

    border: 1px solid #eeeeee;
}


.nav-menu-dropdown button {
    width: 100%;

    padding: 12px 15px;

    display: flex;
    align-items: center;

    gap: 9px;

    text-align: left;

    background: transparent;

    border: none;
    border-bottom: 1px solid #eeeeee;

    color: #333333;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s ease,
                color 0.2s ease;
}


.nav-menu-dropdown button:hover {
    background: #f4efff;
    color: #4a00e0;
}


.nav-menu-dropdown button.menu-logout {
    color: #d32f2f;
}


.nav-menu-dropdown button.menu-logout:hover {
    background: #ffebee;
    color: #b71c1c;
}


@media (min-width: 601px) {

    .nav-menu-dropdown {
        width: 205px !important;
        top: 48px;
    }

  .nav-menu-dropdown button {
    padding: 6px 11px !important;
    font-size: 13px !important;
    gap: 6px;
    min-height: 32px;
    line-height: 1.1;
}
.nav-menu-dropdown button:hover {
        background: #8126f1;
        color: var(--primary);
        padding-left: 16px !important;
    }
}
/* =========================================
   MOBILE MENU HOVER / ACTIVE EFFECT
   ========================================= */

@media (max-width: 600px) {

    .nav-menu-dropdown button {
        transition:
            background-color 0.15s ease,
            color 0.15s ease,
            transform 0.12s ease;
    }

    .nav-menu-dropdown button:hover,
    .nav-menu-dropdown button:active {
        background: #8126f1;
        color: var(--primary);
    }

    .nav-menu-dropdown button:active {
        transform: scale(0.98);
    }

}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    header {
        padding: 9px 12px;
        gap: 8px;
    }

    header h2 {
        font-size: 16px;
    }

    .header-right {
        gap: 6px;
    }

    .lang-select-section,
    .month-filter-section {
        padding: 4px 6px;
    }

    .month-filter-section label {
        font-size: 11px;
    }

    .user-info img {
        width: 32px;
        height: 32px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    header {
        display: flex;
        flex-wrap: wrap;

        padding: 11px 10px;

        gap: 7px;

        border-radius: 7px;

        min-height: auto;
    }


    /* ---------- TOP ROW ---------- */

    header h2 {
        flex: 1;

        min-width: 0;

        font-size: 14px;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    .header-right {
        flex: 1 1 100%;

        width: 100%;

        display: flex;
        align-items: center;

        justify-content: space-between;

        gap: 5px;

        flex-wrap: nowrap;
    }


    /* ---------- LANGUAGE ---------- */

    .lang-select-section {
        flex: 1;

        min-width: 0;

        justify-content: center;

        padding: 4px 5px;
    }


    .lang-select-section label {
        font-size: 13px;
    }


    .lang-select-section select {
        width: 72px;

        height: 27px;

        padding: 2px 4px;

        font-size: 11px;
    }


    /* ---------- MONTH ---------- */

    .month-filter-section {
        flex: 1.35;

        min-width: 0;

        justify-content: center;

        padding: 4px 5px;
    }


    .month-filter-section label {
        font-size: 0;
    }


    /* শুধু calendar icon থাকবে */
    .month-filter-section label::before {
        content: "📅";

        font-size: 13px;
    }


    .month-filter-controls {
        gap: 3px;
    }


    .month-filter-section select {
        height: 27px;

        padding: 2px 4px;

        font-size: 11px;
    }


    /* ---------- USER ---------- */

    .user-info {
        flex: 0 0 auto;
    }


    .user-info img {
        width: 32px;
        height: 32px;

        border-width: 2px;
    }


    /* ---------- USER MANUAL ---------- */

    .navbar-help-btn {
        width: 34px;
        height: 34px;

        font-size: 17px;
    }


    /* ---------- MENU ---------- */

    .three-dots-btn {
        width: 34px;
        height: 34px;

        font-size: 23px;
    }


    /* ---------- DROPDOWN ---------- */

    .nav-menu-dropdown {
        top: calc(100% + 6px);

        right: 0;

        width: min(230px, calc(100vw - 20px));

        max-height: 75vh;

        overflow-y: auto;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    header {
        padding: 7px 7px;
    }


    header h2 {
        font-size: 13px;
    }


    .lang-select-section select {
        width: 66px;

        font-size: 10px;
    }


    .month-filter-section select {
        font-size: 10px;
    }


    .navbar-help-btn {
        width: 32px;
        height: 32px;
    }


    .three-dots-btn {
        width: 32px;
        height: 32px;
    }


    .user-info img {
        width: 30px;
        height: 30px;
    }

}
/* =====================================================
   SCROLLING ANNOUNCEMENT BAR
   ===================================================== */

.announcement-bar {
    width: 100%;
    height: 34px;
    margin: 8px 0 12px 0;
    overflow: hidden;
    border-radius: 6px;
    background: #fff8e1;
    border: 1px solid #e0c36e;
    display: flex;
    align-items: center;
    position: relative;
}
.announcement-track {
    display: inline-flex;
    white-space: nowrap;
    animation: announcementScroll 24s linear infinite;
}

.announcement-track span {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #6b4f00;
    padding-right: 30px;
}

@keyframes announcementScroll {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}


/* Mobile */
@media (max-width: 600px) {

    .announcement-bar {
        height: 32px;
        margin: 6px 0 10px 0;
    }

    .announcement-track span {
        font-size: 12px;
    }

}
        /* CUSTOM TOAST NOTIFICATION */
        .toast-notification {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #323232;
            color: #fff;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 14px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            z-index: 10000;
            display: none;
            animation: fadeInOut 3s forwards;
        }
        @keyframes fadeInOut {
            0% { opacity: 0; transform: translateY(20px); }
            10% { opacity: 1; transform: translateY(0); }
            90% { opacity: 1; transform: translateY(0); }
            100% { opacity: 0; transform: translateY(20px); }
        }

        /* 1ST TIME APP INSTALL POPUP STYLES */
        .install-popup-overlay {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 400px;
            background: #ffffff;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            border-radius: 12px;
            padding: 15px 20px;
            z-index: 10001;
            display: none;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            border: 2px solid #4A00E0;
            animation: slideUp 0.4s ease-out;
        }
        @keyframes slideUp {
            from { transform: translate(-50%, 50px); opacity: 0; }
            to { transform: translate(-50%, 0); opacity: 1; }
        }
        .install-popup-content {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .install-popup-content img {
            width: 45px;
            height: 45px;
            border-radius: 8px;
        }
        .install-popup-text h5 {
            font-size: 15px;
            color: #333;
            margin: 0;
            font-weight: bold;
        }
        .install-popup-text p {
            font-size: 12px;
            color: #666;
            margin: 2px 0 0 0;
        }
        .install-popup-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .btn-popup-install {
            background: #4A00E0;
            color: white;
            border: none;
            padding: 8px 14px;
            font-size: 12px;
            font-weight: bold;
            border-radius: 6px;
            cursor: pointer;
            white-space: nowrap;
        }
        .btn-popup-close {
            background: none;
            border: none;
            font-size: 18px;
            color: #888;
            cursor: pointer;
            padding: 0 4px;
        }
        
    /* =====================================================
   MAIN APP LAYOUT
   All forms and tables stay in a clean vertical flow.
   No HTML changes required.
   ===================================================== */

.section-row {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 15px;
}

.section-row > .section-row {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 0;
}

.section-row .box {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 15px;
}
/* Monthly table action buttons */
        .table-action-buttons {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
            width: 100%;
            max-width: 100%;
            margin-top: 5px;
            margin-bottom: 15px;
            flex-wrap: wrap;
            min-height: 0;
        }

        .btn-clear, .btn-pdf {
            border: none;
            padding: 10px 15px;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s ease;
            font-size: 14px;
            width: auto;
            max-width: 100%;
            min-height: 40px;
            height: auto;
            flex: 0 0 auto;
        }
        .btn-clear { background-color: #e74c3c; color: white; }
        .btn-clear:hover { background-color: #c0392b; }
        .btn-pdf { background-color: #27ae60; color: white; }
        .btn-pdf:hover { background-color: #1e8449; }
        
        .box {
            background: white;
            padding: 15px;
            border-radius: 8px;
            border: 1px solid #ccc;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            width: 100%;
            max-width: 100%;
            min-width: 0;
            box-sizing: border-box;
            overflow: hidden;
        }
        .box h3 {
            margin-bottom: 12px;
            padding-bottom: 5px;
            border-bottom: 2px solid #4A00E0;
            color: #4A00E0;
            font-size: 16px;
            word-wrap: break-word;
        }
        .form-group { margin-bottom: 12px; width: 100%; }
        .form-group label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 13px; }
        .form-group input, .form-group select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 14px;
            outline: none;
            box-sizing: border-box;
        }
        .form-group input:focus, .form-group select:focus { border-color: #8E2DE2; }
        
        button.action-btn {
            background: #4A00E0;
            color: white;
            border: none;
            padding: 12px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            width: 100%;
            font-size: 14px;
            word-wrap: break-word;
            white-space: normal;
        }
        button.action-btn:hover { background: #8E2DE2; }
        
        /* Table Wrapper Horizontal Scroll Fix */
        .table-wrapper {
            width: 100%;
            max-width: 100%;
            overflow-x: auto !important;
            -webkit-overflow-scrolling: touch;
            display: block;
            margin-top: 10px;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
            min-width: 550px;
        }
        table, th, td { border: 1px solid #ccc; }
        th, td { padding: 8px 6px; text-align: left; }
        th { background-color: #f2f2f2; color: #333; }
        .btn-del { background: none; color: #d32f2f; border: none; cursor: pointer; font-weight: bold; }
        
        .btn-paid {
            background-color: #27ae60;
            color: white;
            border: none;
            padding: 4px 8px;
            font-size: 11px;
            font-weight: bold;
            border-radius: 4px;
            cursor: pointer;
            margin-top: 4px;
            display: inline-block;
        }

        /* STATUS TOGGLE BUTTONS */
        .status-toggle-container {
            display: inline-flex;
            gap: 2px;
            margin-top: 4px;
            background: #e0e0e0;
            padding: 2px;
            border-radius: 4px;
        }
        .btn-status {
            border: none;
            padding: 3px 6px;
            font-size: 10px;
            font-weight: bold;
            border-radius: 3px;
            cursor: pointer;
            background: transparent;
            color: #555;
        }
        .btn-status.active-on {
            background: #27ae60;
            color: white;
        }
        .btn-status.Inactive-on {
            background: #e74c3c;
            color: white;
        }
        
        /* MODAL COMMON STYLES */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: none;
            justify-content: center; align-items: center;
            z-index: 9999;
        }
        .modal-box {
            background: white; padding: 20px; border-radius: 12px;
            width: 340px; max-width: 90%;
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
            position: relative;
        }
        .modal-header {
            display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;
        }
        .modal-header h4 { color: #4A00E0; margin: 0; font-size: 16px; }
        .close-modal-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: #888; }
        
        /* MINI CALCULATOR MODAL STYLES */
        .calc-body {
            background: #f8f9fa; border: 1px solid #ccc; padding: 10px; border-radius: 6px; width: 100%; box-sizing: border-box;
        }
        .calc-screen {
            width: 100%; padding: 10px; font-size: 18px; font-weight: bold; text-align: right;
            margin-bottom: 8px; border: 1px solid #ccc; background: white; border-radius: 4px; box-sizing: border-box;
        }
        .calc-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 5px;
        }
        .cbtn {
            padding: 10px 0; font-size: 14px; font-weight: bold; border: 1px solid #bbb;
            background: #e0e0e0; border-radius: 4px; cursor: pointer; text-align: center;
        }
        .cbtn:active { background: #ccc; }
        .cbtn.op { background: #f9a825; color: white; }
        .cbtn.clear { background: #e53935; color: white; }
        .cbtn.eq { background: #2e7d32; color: white; }
        
        .summary-wrapper {
            margin-top: 15px;
            background: white;
            padding: 15px;
            border-radius: 8px;
            border: 1px solid #ccc;
            width: 100%;
            box-sizing: border-box;
        }
        .final-input-row {
            display: flex; gap: 15px; margin-bottom: 10px; flex-wrap: wrap; width: 100%;
        }
        .final-box {
            display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: bold; flex-wrap: wrap; width: 100%;
        }
        .final-box input {
            padding: 8px; width: 100%; border: 1px solid #ccc; border-radius: 4px; font-weight: bold; background: #eef2f7; box-sizing: border-box;
        }
        .rules-box {
            background: #fafafa; padding: 12px; border-radius: 6px; border-left: 4px solid #8E2DE2; font-size: 13px; line-height: 1.6; margin-top: 15px; width: 100%; box-sizing: border-box;
        }
        .rules-box h4 { margin-bottom: 6px; color: #555; text-transform: uppercase; font-size: 13px;}
        
        footer {
            text-align: center;
            margin-top: 20px;
            padding: 15px 5px;
            color: #333;
            font-size: 12px;
        }
        footer a {
            color: #0000FF;
            text-decoration: underline;
            margin: 0 3px;
        }

        /* ADVERTISEMENT CONTAINER STYLES */
        .ad-container {
            width: 100%;
            margin-bottom: 12px;
            background: #eef2f7;
            border: 1px dashed #b0bec5;
            border-radius: 6px;
            padding: 8px;
            text-align: center;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
        }
        
        /* MOBILE BREAKPOINT ENHANCEMENT */
        @media screen and (max-width: 900px) {
            body { padding: 5px; }
            header {
                flex-direction: column;
                text-align: center;
                align-items: stretch;
            }
            header h2 { font-size: 16px; text-align: center; }
            
            .header-right { width: 100%; justify-content: space-between; margin-top: 5px; }
            .month-filter-section, .lang-select-section { width: auto; justify-content: center; }
            .user-info { width: auto; justify-content: center; }
            .section-row {
                display: block !important;
                width: 100%;
                max-width: 100%;
                min-width: 0;
            }

            .section-row > .section-row {
                display: block !important;
                width: 100%;
                max-width: 100%;
                min-width: 0;
            }

            .section-row .box {
                width: 100%;
                max-width: 100%;
                min-width: 0;
            }

            .table-action-buttons {
                width: 100%;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: flex-start;
                flex-wrap: wrap;
            }

            .btn-clear, .btn-pdf {
                width: auto !important;
                max-width: 100%;
                flex: 0 0 auto;
            }

            .final-input-row { flex-direction: column; }
            .final-box { flex-direction: column; align-items: flex-start; }
            
            .table-action-buttons { flex-direction: column; width: 100%; }
            .btn-clear, .btn-pdf { width: 100%; text-align: center; }
        }
        @media print {
            body { background-color: #fff; padding: 0; margin: 0; }
            header, .login-container, .user-info,
            .table-action-buttons, .no-print, .modal-overlay,
            footer, .btn-paid, .three-dots-btn, .nav-menu-dropdown, .ad-container, .install-popup-overlay {
                display: none !important;
            }
            .section-row { display: block !important; }
            .box, .summary-wrapper {
                border: 1px solid #ccc !important;
                box-shadow: none !important;
                margin-bottom: 15px !important;
                padding: 10px !important;
                page-break-inside: avoid;
            }
            .action-col, th:last-child, td:last-child { display: none !important; }
            table { width: 100% !important; border-collapse: collapse !important; min-width: 100% !important; }
            th, td { border: 1px solid #888 !important; padding: 6px !important; }
        }
/* ==========================================
   USER MANUAL TITLE + HELP BUTTON
   ========================================== */
/* ==========================================
   USER MANUAL HELP BUTTON
   ========================================== */


/* ------------------------------------------
   SECTION TITLE
   ------------------------------------------ */

/*
   Title-এর সঙ্গে ? একই লাইনে রাখবে
*/
h3:has(.manual-help-btn) {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100%;
    box-sizing: border-box;

    margin: 0;
}


/* Title-এর ভিতরের span */
h3:has(.manual-help-btn) > span {
    flex: 1 1 auto;

    min-width: 0;

    display: block;
}


/* ------------------------------------------
   ? BUTTON
   ------------------------------------------ */

.manual-help-btn {

    width: 22px !important;
    height: 22px !important;

    min-width: 22px !important;
    min-height: 22px !important;

    flex: 0 0 22px !important;

    margin: 0 0 0 8px !important;
    padding: 0 !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    border: 1px solid #4b0082 !important;
    border-radius: 50% !important;

    background: #ffffff !important;
    color: #4b0082 !important;

    font-size: 13px !important;
    font-weight: bold !important;

    line-height: 1 !important;

    cursor: pointer;

    vertical-align: middle;

    position: relative;
    z-index: 20;
}


.manual-help-btn:hover {
    background: #4b0082 !important;
    color: #ffffff !important;
}


/* ==========================================
   ADD ROOMMATE TITLE
   ========================================== */

/*
   Add Roommate-এর ? যদি h3-এর বাইরে থাকে,
   তাহলেও title-এর সঙ্গে একই লাইনে রাখবে।
*/

#txtAddRoommateTitle {

    display: inline-block !important;

    width: auto !important;

    margin: 0 !important;

    vertical-align: middle !important;
}


/*
   Add Roommate title-এর পরের ? button
*/

#txtAddRoommateTitle + .manual-help-btn {

    display: inline-flex !important;

    width: 22px !important;
    height: 22px !important;

    min-width: 22px !important;
    min-height: 22px !important;

    margin-left: 8px !important;

    vertical-align: middle !important;
}


/* ==========================================
   NAVBAR USER MANUAL BUTTON
   ========================================== */

.navbar-help-btn {

    width: 30px !important;
    height: 30px !important;

    min-width: 30px !important;
    min-height: 30px !important;

    flex: 0 0 30px !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #ffffff !important;
    border-radius: 50% !important;

    background: transparent !important;
    color: #ffffff !important;

    font-size: 17px !important;
    font-weight: bold !important;

    line-height: 1 !important;

    cursor: pointer;

    position: relative;
    z-index: 50;
}


.navbar-help-btn:hover {

    background: #ffffff !important;
    color: #4b0082 !important;
}


/* ==========================================
   IMPORTANT
   ========================================== */

/*
   আগের CSS-এর কারণে navbar layout নষ্ট হচ্ছিল।
   তাই header-right-এ কোনো নতুন flex layout
   চাপিয়ে দেওয়া হচ্ছে না।
*/


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 600px) {

    .navbar-help-btn {

        width: 28px !important;
        height: 28px !important;

        min-width: 28px !important;
        min-height: 28px !important;

        flex: 0 0 28px !important;

        font-size: 15px !important;
    }

    .manual-help-btn {

        width: 20px !important;
        height: 20px !important;

        min-width: 20px !important;
        min-height: 20px !important;

        flex-basis: 20px !important;

        font-size: 12px !important;
    }
}

/* ==========================================
   USER MANUAL POPUP
========================================== */

.user-manual-modal {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 99999;

    background: rgba(0, 0, 0, 0.60);

    align-items: center;
    justify-content: center;

    padding: 15px;

    box-sizing: border-box;
}


/* ==========================================
   POPUP BOX
========================================== */

.user-manual-box {

    width: 100%;

    max-width: 850px;

    max-height: 90vh;

    background: #ffffff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.35);

    display: flex;

    flex-direction: column;
}


/* ==========================================
   POPUP HEADER
========================================== */

.user-manual-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding: 14px 18px;

    background: #4b0082;

    color: #ffffff;

    flex-shrink: 0;
}


.user-manual-header h3 {

    margin: 0;

    padding: 0;

    color: #ffffff;

    font-size: 18px;

    font-weight: bold;
}


/* ==========================================
   CLOSE BUTTON
========================================== */

.user-manual-close {

    width: 32px;

    height: 32px;

    min-width: 32px;

    border: none;

    border-radius: 50%;

    background: transparent;

    color: #ffffff;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    justify-content: center;
}


.user-manual-close:hover {

    background: rgba(255, 255, 255, 0.20);
}


/* ==========================================
   MANUAL CONTENT
========================================== */

.user-manual-content {

    padding: 20px;

    overflow-y: auto;

    flex: 1;

    color: #222;

    background: #ffffff;

    box-sizing: border-box;
}


/*
   তোমার existing manual-এর HTML-এর
   ভিতরের style থাকলে সেগুলোকেও support করবে
*/

.user-manual-content h1,
.user-manual-content h2,
.user-manual-content h3 {

    color: #4b0082;

}


.user-manual-content p {

    line-height: 1.6;

}


.user-manual-content ul,
.user-manual-content ol {

    line-height: 1.7;

    padding-left: 25px;
}


/* ==========================================
   LOADING
========================================== */

.manual-loading {

    text-align: center;

    padding: 30px;

    color: #777;

    font-size: 14px;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .user-manual-modal {

        padding: 8px;
    }


    .user-manual-box {

        max-height: 94vh;

        border-radius: 10px;
    }


    .user-manual-header {

        padding: 12px 14px;
    }


    .user-manual-header h3 {

        font-size: 16px;
    }


    .user-manual-content {

        padding: 15px;

        font-size: 14px;
    }


    .user-manual-close {

        width: 30px;

        height: 30px;

        min-width: 30px;

        font-size: 25px;
    }
}
/* =========================================================
   DASHBOARD SUMMARY BOXES
   ========================================================= */

.dashboard-summary-boxes {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin: 0 0 16px;
}


/* ---------- Common Box ---------- */

.summary-box {

    min-width: 0;

    min-height: 120px;

    padding: 18px;

    display: flex;

    align-items: center;

    gap: 15px;

    border-radius: 14px;

    border: 1px solid rgba(0,0,0,0.06);

    box-shadow:
        0 5px 16px rgba(0,0,0,0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.summary-box:hover {

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0,0,0,0.08);
}


/* ---------- Box Backgrounds ---------- */

.summary-expenses {

    background:
        linear-gradient(
            135deg,
            #eaf4ff,
            #dcecff
        );
}


.summary-roommates {

    background:
        linear-gradient(
            135deg,
            #ecfff3,
            #dff8e9
        );
}


.summary-advance {

    background:
        linear-gradient(
            135deg,
            #fffbea,
            #fff3c7
        );
}


.summary-balance {

    background:
        linear-gradient(
            135deg,
            #f7edff,
            #eedcff
        );
}


/* ---------- Icon ---------- */

.summary-box-icon {

    width: 62px;

    height: 62px;

    min-width: 62px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 18px;

    background:
        rgba(255,255,255,0.62);

    font-size: 32px;
}


/* ---------- Content ---------- */

.summary-box-content {

    min-width: 0;

    display: flex;

    flex-direction: column;
}


.summary-box-title {

    color: #354052;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.2;
}


.summary-box-content strong {

    margin-top: 5px;

    color: #111111;

    font-size: 27px;

    font-weight: 800;

    line-height: 1.15;

    white-space: nowrap;
}


.summary-box-content small {

    margin-top: 3px;

    color: #6b7280;

    font-size: 11px;

    line-height: 1.2;
}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 1100px) {

    .dashboard-summary-boxes {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 700px) {

    .dashboard-summary-boxes {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;

        margin-bottom: 10px;
    }


    .summary-box {

        min-height: 90px;

        padding: 10px;

        gap: 8px;

        border-radius: 11px;
    }


    .summary-box-icon {

        width: 40px;

        height: 40px;

        min-width: 40px;

        border-radius: 11px;

        font-size: 21px;
    }


    .summary-box-title {

        font-size: 10px;
    }


    .summary-box-content strong {

        margin-top: 3px;

        font-size: 18px;
    }


    .summary-box-content small {

        font-size: 8px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 430px) {

    .summary-box {

        min-height: 82px;

        padding: 8px;

        gap: 6px;
    }


    .summary-box-icon {

        width: 34px;

        height: 34px;

        min-width: 34px;

        border-radius: 9px;

        font-size: 18px;
    }


    .summary-box-title {

        font-size: 9px;
    }


    .summary-box-content strong {

        font-size: 15px;
    }


    .summary-box-content small {

        font-size: 7px;
    }

}
/* =========================================
   ADD ROOMMATE GUIDE POPUP
   ========================================= */

.roommate-guide-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.roommate-guide-box {
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    animation: roommateGuidePopup 0.22s ease-out;
}

.roommate-guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
}

.roommate-guide-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.roommate-guide-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.roommate-guide-close:hover {
    background: rgba(255, 255, 255, 0.30);
}

.roommate-guide-body {
    padding: 20px;
    max-height: calc(90vh - 70px);
    overflow-y: auto;
}

.roommate-guide-body > p {
    margin: 0 0 18px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.roommate-guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}

.roommate-guide-step:last-of-type {
    border-bottom: none;
}

.guide-step-number {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: #667eea;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.roommate-guide-step strong {
    display: block;
    color: #333;
    font-size: 14px;
    margin-bottom: 3px;
}

.roommate-guide-step p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.roommate-guide-add-btn {
    width: 100%;
    margin-top: 18px;
    min-height: 46px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
}

@keyframes roommateGuidePopup {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */

@media (max-width: 600px) {

    .roommate-guide-overlay {
        padding: 12px;
    }

    .roommate-guide-box {
        max-width: 100%;
        border-radius: 14px;
    }

    .roommate-guide-header {
        padding: 14px 15px;
    }

    .roommate-guide-header h3 {
        font-size: 16px;
    }

    .roommate-guide-body {
        padding: 16px;
    }

    .roommate-guide-step {
        gap: 10px;
    }

    .guide-step-number {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
}
/* =========================================
   FLOATING NOTEBOOK
   ========================================= */

.floating-notebook-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;

    width: 54px;
    height: 54px;

    border: none;
    border-radius: 50%;

    background: linear-gradient(135deg, #7c1fe8, #4a00e0);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 27px;
    line-height: 1;

    cursor: grab;
    user-select: none;
    touch-action: none;

    box-shadow:
        0 6px 18px rgba(74, 0, 224, 0.30),
        0 2px 6px rgba(0, 0, 0, 0.18);

    z-index: 10010;

    transition:
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.floating-notebook-btn:hover {
    filter: brightness(1.06);

    box-shadow:
        0 8px 22px rgba(74, 0, 224, 0.38),
        0 3px 8px rgba(0, 0, 0, 0.20);
}

.floating-notebook-btn:active {
    cursor: grabbing;
}


/* =========================================
   NOTEBOOK PANEL
   ========================================= */

.notebook-panel {
    position: fixed;

    width: 340px;
    max-width: calc(100vw - 24px);

    right: 22px;
    bottom: 88px;

    background: #ffffff;

    border: 1px solid #e2e2e2;
    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(74, 0, 224, 0.10);

    z-index: 10011;

    box-sizing: border-box;
}


/* =========================================
   NOTEBOOK HEADER
   ========================================= */

.notebook-header {
    min-height: 52px;

    padding: 10px 13px;

    background: linear-gradient(135deg, #7c1fe8, #4a00e0);

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
}

.notebook-header h3 {
    margin: 0;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.2;

    color: #ffffff;
}


/* =========================================
   NOTEBOOK CLOSE BUTTON
   ========================================= */

.notebook-close-btn {
    width: 32px;
    height: 32px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.16);

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.12s ease;
}

.notebook-close-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.notebook-close-btn:active {
    transform: scale(0.94);
}


/* =========================================
   NOTEBOOK BODY
   ========================================= */

.notebook-body {
    padding: 15px;

    background: #ffffff;

    box-sizing: border-box;
}


/* =========================================
   NOTEBOOK VISIBILITY
   ========================================= */

.notebook-visibility {
    margin-bottom: 13px;

    padding: 11px 12px;

    background: #f8f9fa;

    border: 1px solid #e3e5e8;
    border-radius: 10px;

    box-sizing: border-box;
}

.notebook-visibility-title {
    margin-bottom: 9px;

    color: #333333;

    font-size: 13px;
    font-weight: 700;
}

.notebook-option {
    display: flex;
    align-items: center;

    gap: 8px;

    margin: 7px 0;

    color: #444444;

    font-size: 13px;

    cursor: pointer;

    user-select: none;
}

.notebook-option input[type="radio"] {
    width: 15px;
    height: 15px;

    margin: 0;

    accent-color: #4a00e0;

    cursor: pointer;
}

.notebook-option span {
    line-height: 1.3;
}


/* =========================================
   NOTEBOOK TEXTAREA
   ========================================= */

.notebook-textarea {
    width: 100%;
    min-height: 180px;

    padding: 12px;

    border: 1px solid #d5d8dc;
    border-radius: 10px;

    background: #ffffff;
    color: #222222;

    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;

    resize: vertical;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.notebook-textarea::placeholder {
    color: #999999;
}

.notebook-textarea:focus {
    border-color: #4a00e0;

    box-shadow:
        0 0 0 3px rgba(74, 0, 224, 0.10);
}


/* =========================================
   NOTEBOOK SAVE BUTTON
   ========================================= */

.notebook-save-btn {
    width: 100%;

    margin-top: 12px;

    min-height: 42px;

    padding: 9px 14px;

    border: none;
    border-radius: 9px;

    background: linear-gradient(135deg, #7c1fe8, #4a00e0);

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    box-shadow:
        0 4px 10px rgba(74, 0, 224, 0.18);

    transition:
        filter 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
}

.notebook-save-btn:hover {
    filter: brightness(1.06);

    box-shadow:
        0 6px 14px rgba(74, 0, 224, 0.25);
}

.notebook-save-btn:active {
    transform: scale(0.98);
}


/* =========================================
   NOTEBOOK MOBILE RESPONSIVE
   ========================================= */

@media (max-width: 600px) {

    .floating-notebook-btn {
        width: 50px;
        height: 50px;

        right: 14px;
        bottom: 16px;

        font-size: 25px;
    }

    .notebook-panel {
        left: 12px;
        right: 12px;

        bottom: 76px;

        width: auto;
        max-width: none;

        border-radius: 14px;
    }

    .notebook-header {
        min-height: 50px;

        padding: 9px 12px;
    }

    .notebook-header h3 {
        font-size: 15px;
    }

    .notebook-body {
        padding: 13px;
    }

    .notebook-textarea {
        min-height: 155px;

        font-size: 14px;
    }

    .notebook-save-btn {
        min-height: 42px;
    }
}


/* =========================================
   VERY SMALL MOBILE
   ========================================= */

@media (max-width: 380px) {

    .floating-notebook-btn {
        width: 48px;
        height: 48px;

        right: 12px;
        bottom: 14px;

        font-size: 23px;
    }

    .notebook-panel {
        left: 9px;
        right: 9px;

        bottom: 70px;
    }

    .notebook-body {
        padding: 11px;
    }

    .notebook-textarea {
        min-height: 140px;
    }
}

/* =========================================
   NOTEBOOK - SAVED NOTES LIST
   ========================================= */

.notebook-notes-list {
    display: flex;
    flex-direction: column;
    gap: 9px;

    margin-bottom: 13px;
}


/* =========================================
   NOTE ITEM
   ========================================= */

.notebook-note-item {
    padding: 10px 11px;

    background: #faf9ff;

    border: 1px solid #e4defc;
    border-left: 4px solid #6d18df;

    border-radius: 9px;

    box-sizing: border-box;

    overflow-wrap: anywhere;

    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.notebook-note-item:hover {
    background: #f7f3ff;

    box-shadow:
        0 3px 10px rgba(74, 0, 224, 0.08);
}


/* =========================================
   NOTE HEADER
   ========================================= */

.notebook-note-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-bottom: 6px;
}

.notebook-note-creator {
    color: #333333;

    font-size: 12px;
    font-weight: 700;
}

.notebook-note-visibility {
    flex-shrink: 0;

    padding: 3px 7px;

    border-radius: 20px;

    background: #eee8ff;

    color: #5a12c8;

    font-size: 10px;
    font-weight: 600;

    line-height: 1.3;
}


/* =========================================
   NOTE TEXT
   ========================================= */

.notebook-note-text {
    color: #333333;

    font-size: 13px;
    line-height: 1.45;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
}


/* =========================================
   EMPTY / LOADING MESSAGE
   ========================================= */

.notebook-empty {
    padding: 10px;

    margin-bottom: 13px;

    border: 1px dashed #d8d2e8;
    border-radius: 8px;

    background: #faf9ff;

    color: #777777;

    text-align: center;

    font-size: 12px;
}

.notebook-error {
    color: #b42318;

    background: #fff5f5;

    border-color: #f1b8b8;
}


/* =========================================
   MOBILE NOTES
   ========================================= */

@media (max-width: 600px) {

    .notebook-notes-list {
        gap: 8px;
    }

    .notebook-note-item {
        padding: 9px 10px;
    }

    .notebook-note-header {
        align-items: flex-start;
    }

    .notebook-note-creator {
        font-size: 11px;
    }

    .notebook-note-visibility {
        font-size: 9px;

        padding: 3px 6px;
    }

    .notebook-note-text {
        font-size: 13px;
    }
}

/* =========================================
   NOTEBOOK POSITION / VIEWPORT FIX
   ========================================= */

.notebook-panel {
    max-height: calc(100vh - 105px);
    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
}


/* Keep header visible while scrolling */
.notebook-panel .notebook-header {
    position: sticky;
    top: 0;
    z-index: 2;
}


/* =========================================
   MOBILE NOTEBOOK FIX
   ========================================= */

@media (max-width: 600px) {

    .notebook-panel {
        top: 70px;
        bottom: auto;

        max-height: calc(100vh - 85px);

        left: 10px;
        right: 10px;

        width: auto;
    }

    .notebook-panel .notebook-header {
        position: sticky;
        top: 0;
    }
}

/* ==========================================
   NOTEBOOK NOTE ACTION BUTTONS
========================================== */

.notebook-note-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #eee8fb;
}

/* Common action button */
.notebook-note-actions button {
    border: none;
    border-radius: 7px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.12s ease,
        box-shadow 0.15s ease;
}

/* Edit Button */
.notebook-edit-btn {
    background: #f3edff;
    color: #5f16c9;
    border: 1px solid #ddd0fa !important;
}

.notebook-edit-btn:hover {
    background: #e7dcff;
    color: #4a00a8;
    box-shadow: 0 2px 6px rgba(74, 0, 168, 0.12);
}

.notebook-edit-btn:active {
    transform: scale(0.97);
}

/* Delete Button */
.notebook-delete-btn {
    background: #fff1f1;
    color: #d62828;
    border: 1px solid #f3cccc !important;
}

.notebook-delete-btn:hover {
    background: #ffe1e1;
    color: #b71c1c;
    box-shadow: 0 2px 6px rgba(183, 28, 28, 0.12);
}

.notebook-delete-btn:active {
    transform: scale(0.97);
}


/* ==========================================
   NOTEBOOK ACTION BUTTONS - MOBILE
========================================== */

@media (max-width: 600px) {

    .notebook-note-actions {
        gap: 6px;
        margin-top: 8px;
        padding-top: 7px;
    }

    .notebook-note-actions button {
        padding: 6px 9px;
        font-size: 11.5px;
        min-height: 30px;
    }

}