/* ═══════════════════════════════════════════════════════════════════════════
   𝕭𝖍𝖆𝖗𝖆𝖒𝖆𝖘𝖙𝖗𝖆 - Premium Light Luxury UI
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────────────────────── */
:root {
    /* Light Luxury Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.95);

    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --accent-rose: #f43f5e;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-vibrant: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f97316 100%);
    --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-warm: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    --gradient-fresh: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(99, 102, 241, 0.15);
    --glass-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);

    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(99, 102, 241, 0.08);
    --shadow-card: 0 10px 40px rgba(99, 102, 241, 0.12), 0 0 1px rgba(99, 102, 241, 0.1);
    --shadow-button: 0 4px 15px rgba(99, 102, 241, 0.25);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ─── Reset & Base ─────────────────────────────────────────────────────── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ─── Animated Background ───────────────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Floating Decorative Elements */
body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 25s ease-in-out infinite;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-30px, 40px) scale(1.05);
    }

    66% {
        transform: translate(20px, -20px) scale(0.98);
    }
}

/* ─── Main Layout ─────────────────────────────────────────────────────── */
.main-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ─── Premium Sidebar ─────────────────────────────────────────────────── */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 300px;
    min-width: 300px;
    background: var(--gradient-primary);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 4px 0 30px rgba(99, 102, 241, 0.2);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    padding: 28px 24px;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.logo i {
    margin-right: 14px;
    font-size: 1.4rem;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    }
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 4px 16px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-smooth);
    position: relative;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateX(5px);
}

.sidebar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #fff;
    border-radius: 0 4px 4px 0;
}

.sidebar-nav .nav-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: transform var(--transition-smooth);
}

.sidebar-nav .nav-link.active i {
    transform: scale(1.1);
}

/* ─── Content Area ─────────────────────────────────────────────────────── */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 40px 32px;
    margin-left: 300px;
    width: calc(100% - 300px);
    position: relative;
    z-index: 1;
}

/* ─── Header ─────────────────────────────────────────────────────────── */
.header {
    width: 100%;
    max-width: 900px;
    text-align: center;
    margin-bottom: 40px;
}

.header-content h1,
.glowing-text {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    animation: textShimmer 4s ease-in-out infinite;
}

@keyframes textShimmer {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.5));
    }
}

.header-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ─── Cards & Sections ──────────────────────────────────────────────── */
.tab-content {
    display: none;
    animation: fadeSlideIn 0.5s var(--transition-smooth);
    width: 100%;
}

.tab-content.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tab-section,
.card.form-container,
.card {
    background: var(--bg-secondary);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto 32px auto;
    width: 100%;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.tab-section::before,
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 24px 24px 0 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.form-title i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ─── Form Elements ────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 28px;
}

label,
.form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

label i,
.form-label i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.form-control,
.form-select {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 14px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-smooth);
    font-family: inherit;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: #fff;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: #fff;
}

select.form-control,
.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 48px;
    background-color: var(--bg-tertiary);
}

select.form-control option,
.form-select option {
    background: #fff;
    color: var(--text-primary);
    padding: 12px;
}

/* ─── Transaction Type Buttons ─────────────────────────────────────────── */
.transaction-type-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.transaction-type-label {
    flex: 1;
    min-width: 140px;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.transaction-type-label:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.transaction-type-label.active {
    background: var(--gradient-primary) !important;
    border-color: transparent !important;
    box-shadow: var(--shadow-button);
    transform: translateY(-2px);
}

.transaction-type-label.active .transaction-type-button {
    color: #fff !important;
}

.transaction-type-label input[type="radio"] {
    display: none;
}

.transaction-type-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-smooth);
}

.transaction-type-label:hover .transaction-type-button {
    color: var(--text-primary);
}

/* ─── Checkbox Buttons ────────────────────────────────────────────────── */
.checkbox-group,
.radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.checkbox-button-label {
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-smooth);
}

.checkbox-button-label:hover {
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--text-primary);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.checkbox-button-label.active {
    background: var(--gradient-primary) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: var(--shadow-button);
    transform: translateY(-2px);
}

.checkbox-button-label input[type="checkbox"],
.checkbox-button-label input[type="radio"] {
    display: none;
}

.checkbox-button-label i {
    transition: transform var(--transition-smooth);
}

.checkbox-button-label.active i {
    transform: scale(1.1);
}

/* ─── Action Buttons ─────────────────────────────────────────────────── */
.button-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 36px;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-smooth);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

/* Generate Button - Primary */
.btn-primary,
.generate-button {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-button);
}

.btn-primary:hover,
.generate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.btn-primary:active,
.generate-button:active {
    transform: translateY(-1px);
}

/* Copy Button - Secondary */
.btn-secondary,
.copy-button {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover,
.copy-button:hover {
    background: var(--gradient-cool);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.25);
}

/* Reset Button */
.reset-button,
.btn-danger {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-rose);
    border: 2px solid rgba(244, 63, 94, 0.2);
}

.reset-button:hover,
.btn-danger:hover {
    background: var(--accent-rose);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.3);
}

/* Small buttons */
.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.btn-light {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.btn-light:hover {
    background: #fff;
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
}

/* ─── Output Box ────────────────────────────────────────────────────────── */
.output-box {
    background: var(--bg-tertiary);
    border: 2px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    padding: 28px;
    min-height: 140px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    position: relative;
    margin-top: 16px;
    transition: all var(--transition-smooth);
}

.output-box:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-soft);
}

.output-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    min-height: 100px;
}

.output-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.6;
}

.output-placeholder p {
    margin: 0;
    font-size: 1rem;
}

/* ─── Suggestions ────────────────────────────────────────────────────────── */
.input-wrapper {
    position: relative;
}

.suggestion-box,
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-top: none;
    border-radius: 0 0 14px 14px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
}

.suggestion-box:empty,
.suggestions:empty {
    display: none;
}

.suggestion-box div,
.suggestions div {
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.suggestion-box div:last-child,
.suggestions div:last-child {
    border-bottom: none;
}

.suggestion-box div:hover,
.suggestion-box div.active,
.suggestions div:hover {
    background: var(--gradient-primary);
    color: #fff;
}

/* Scrollbar */
.suggestion-box::-webkit-scrollbar,
.suggestions::-webkit-scrollbar {
    width: 6px;
}

.suggestion-box::-webkit-scrollbar-track,
.suggestions::-webkit-scrollbar-track {
    background: transparent;
}

.suggestion-box::-webkit-scrollbar-thumb,
.suggestions::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

/* ─── Section Dividers ─────────────────────────────────────────────────── */
.section-divider,
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    margin: 28px 0;
}

/* ─── Form Check (Bootstrap Override) ────────────────────────────────── */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    background: var(--bg-tertiary);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.form-check-input:checked {
    background: var(--gradient-primary);
    border-color: var(--accent-primary);
}

.form-check-label {
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 0 !important;
    font-weight: 500;
}

/* ─── Item Controls ────────────────────────────────────────────────────── */
.item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-controls span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ─── Notification Toast ───────────────────────────────────────────────── */
.notification,
#notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 18px 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    transform: translateY(120px);
    opacity: 0;
    transition: all var(--transition-smooth);
    z-index: 9999;
    font-weight: 600;
}

.notification.show,
#notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification i,
#notification i {
    font-size: 1.3rem;
}

/* ─── Error Popup ─────────────────────────────────────────────────────── */
.error-popup,
#error-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.error-popup.show,
#error-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(99, 102, 241, 0.2);
    transform: scale(0.9);
    transition: transform var(--transition-smooth);
}

.error-popup.show .popup-content,
#error-popup.show .popup-content {
    transform: scale(1);
}

.popup-content i {
    font-size: 3rem;
    color: var(--accent-rose);
    margin-bottom: 20px;
}

.popup-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.popup-button {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.popup-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

/* ─── Utilities ────────────────────────────────────────────────────────── */
.d-flex {
    display: flex;
}

.d-none {
    display: none !important;
}

.flex-wrap {
    flex-wrap: wrap;
}

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

.flex-sm-row {
    flex-direction: column;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted) !important;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.mt-3 {
    margin-top: 16px;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-3 {
    margin-bottom: 16px;
}

.ms-3 {
    margin-left: 16px;
}

.me-2 {
    margin-right: 8px;
}

.shadow {
    box-shadow: var(--shadow-card);
}

/* ─── Responsive Design ────────────────────────────────────────────────── */
@media (min-width: 576px) {
    .flex-sm-row {
        flex-direction: row;
    }
}

@media (max-width: 1200px) {
    .content-area {
        padding: 32px 24px;
    }

    .tab-section,
    .card {
        padding: 32px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 260px;
        min-width: 260px;
    }

    .content-area {
        margin-left: 260px;
        width: calc(100% - 260px);
        padding: 28px 20px;
    }

    .header-content h1,
    .glowing-text {
        font-size: 2.4rem;
    }
}

@media (max-width: 900px) {
    .main-wrapper {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        min-width: 100%;
        height: auto;
        flex-direction: row;
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
    }

    .logo {
        padding: 16px 20px;
        font-size: 1.3rem;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.15);
        width: auto;
    }

    .sidebar-nav {
        flex-direction: row;
        padding: 0;
        flex: 1;
        overflow-x: auto;
    }

    .sidebar-nav ul {
        display: flex;
        flex-direction: row;
        width: 100%;
        padding: 0;
    }

    .sidebar-nav li {
        margin: 0;
        flex-shrink: 0;
    }

    .sidebar-nav .nav-link {
        padding: 16px 18px;
        border-radius: 0;
    }

    .sidebar-nav .nav-link:hover {
        transform: none;
    }

    .sidebar-nav .nav-link.active {
        border-radius: 0;
        background: rgba(255, 255, 255, 0.2);
    }

    .sidebar-nav .nav-link.active::before {
        display: none;
    }

    .content-area {
        margin-left: 0;
        width: 100%;
        padding: 28px 20px;
    }

    .header-content h1,
    .glowing-text {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .logo span {
        display: none;
    }

    .sidebar-nav .nav-link {
        padding: 14px 16px;
    }

    .sidebar-nav .nav-link span {
        display: none;
    }

    .sidebar-nav .nav-link i {
        margin-right: 0;
    }

    .content-area {
        padding: 20px 16px;
    }

    .tab-section,
    .card {
        padding: 24px;
        border-radius: 18px;
    }

    .tab-section::before,
    .card::before {
        border-radius: 18px 18px 0 0;
    }

    .header-content h1,
    .glowing-text {
        font-size: 1.7rem;
    }

    .form-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .button-group {
        gap: 10px;
    }

    .transaction-type-label,
    .checkbox-button-label {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 16px 12px;
    }

    .tab-section,
    .card {
        padding: 20px;
        border-radius: 16px;
    }

    .header-content h1,
    .glowing-text {
        font-size: 1.5rem;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .transaction-type-label,
    .checkbox-button-label {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: unset;
        flex: 1;
    }

    .form-control,
    .form-select {
        padding: 14px 16px;
    }

    .output-box {
        padding: 20px;
    }

    .notification,
    #notification {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

/* ─── Scrollbar ────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
}

/* ─── Focus States ──────────────────────────────────────────────────────── */
.btn:focus,
.transaction-type-label:focus,
.checkbox-button-label:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* ─── Selection ────────────────────────────────────────────────────────── */
::selection {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

/* ─── Card Body Override ───────────────────────────────────────────────── */
.card-body {
    padding: 0;
}

/* ─── Overflow Fix ─────────────────────────────────────────────────────── */
.input-group,
.card.form-container,
.tab-section,
.content-area {
    overflow: visible !important;
}

/* ─── Sidebar Footer & User Info ─────────────────────────────────────────── */
.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 12px 16px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-footer .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.sidebar-footer .user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

.sidebar-footer .user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-footer .user-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer .user-plan {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.btn-logout-sidebar {
    background: rgba(244, 63, 94, 0.2);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-logout-sidebar:hover {
    background: #f43f5e;
    transform: scale(1.05);
}

/* ─── Header Enhancement ─────────────────────────────────────────────────── */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ads-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-button);
}

.ads-counter i {
    font-size: 1.1rem;
}

/* ─── Ad Banner for Free Users ───────────────────────────────────────────── */
.ad-banner {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ad-banner::before {
    content: 'SPONSORED';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ad-banner h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.ad-banner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.ad-banner .upgrade-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--gradient-warm);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ad-banner .upgrade-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}