html[data-boxed-layout=boxed] .container-fluid, html[data-boxed-layout=boxed] .container-lg, html[data-boxed-layout=boxed] .container-md, html[data-boxed-layout=boxed] .container-sm, html[data-boxed-layout=boxed] .container-xl, html[data-boxed-layout=boxed] .container-xxl {
    max-width: 1630px !important;
}

body .select2-container--default .select2-selection--multiple {
    min-height: 43px !important;
}

body .select2-container--default .select2-selection--single {
    height: 43px !important;
}

.btn-light-primary {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
}

.btn-light-primary:hover {
    background: rgba(var(--bs-primary-rgb), 0.2);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}


.select2-selection.is-invalid {
    border-color: var(--bs-form-invalid-border-color) !important;
    padding-right: calc(1.5em + 20px) !important;
    background-repeat: no-repeat !important;
    background-position: right calc(.375em + 5px) center !important;
    background-size: calc(.75em + 10px) calc(.75em + 10px) !important;
}

/* Card Preview */
.hover-shadow-lg {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-shadow-lg:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.badge-rounded {
    border-radius: 20px;
    padding: 8px 15px;
}

.card-preview {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.card-preview::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 20%, 
        rgba(255,255,255,0.1) 45%, 
        transparent 70%);
    transform: rotate(45deg);
    pointer-events: none;
}

/* Account Settings */
.settings-nav .nav-link {
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}
.settings-nav .nav-link:not(.active):hover {
    background-color: var(--bs-primary-bg-subtle);
}
.settings-nav .nav-link.active {
    background-color: var(--bs-primary);
    color: white;
}
.settings-card {
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    border-radius: 15px;
}
.settings-card .card-header {
    background: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem;
}
.form-control, .form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.1);
}
.settings-switch {
    width: 3.5rem;
    height: 2rem;
}
.settings-switch:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Card Details card.php */
.c-card-field {
    display: flex;
    flex-direction: column;
    min-height: 65px;
}

/* ===== EMI DETAILS PAGE STYLES ===== */

/* Page Background */
.emi-details-page {
    min-height: 100vh;
}

/* Enhanced Statistics Cards */
.emi-stats-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.emi-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.emi-stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.emi-stats-card .card-body {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Premium Progress Card */
.emi-progress-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border: none;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.emi-progress-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: rotate 6s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.emi-progress-card .card-body {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

/* Advanced Circular Progress */
.emi-progress-circular {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
}

.emi-progress-circular svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.emi-progress-circular .progress-circle {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}

.emi-progress-circular .progress-bg {
    stroke: rgba(255, 255, 255, 0.2);
}

.emi-progress-circular .progress-fill {
    stroke: url(#progressGradient);
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 2.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { stroke-width: 10; }
    100% { stroke-width: 12; }
}

.emi-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 800;
    color: #495057;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Enhanced Metrics */
.emi-metric {
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.emi-metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.emi-metric-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.emi-metric-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Professional Action Buttons */
.emi-action-btn {
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%);
}

.emi-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.emi-action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.emi-action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.emi-action-btn.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.emi-action-btn.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

.emi-action-btn.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

/* Enhanced Grid Items */
.emi-grid-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1rem;
    border: 2px solid rgba(233, 236, 239, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.emi-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.emi-grid-item:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.emi-grid-item:hover::before {
    transform: scaleX(1);
}

/* Professional Typography */
.emi-amount-highlight {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 2.5rem;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .emi-stats-card {
        margin-bottom: 1.5rem;
    }
    
    .emi-progress-circular {
        width: 100px;
        height: 100px;
    }
    
    .emi-metric {
        padding: 1rem;
    }
    
    .emi-amount-highlight {
        font-size: 2rem;
    }
}

/* ===== CARD DETAILS PAGE STYLES ===== */
.card-details-page .card-preview-3d {
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: all 0.3s ease;
    position: relative;
}

.card-details-page .card-preview-3d:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.card-details-page .card-chip {
    width: 35px;
    height: 28px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 4px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.card-details-page .card-chip::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    border-radius: 2px;
}

.card-details-page .info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.card-details-page .info-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-details-page .detail-row {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-details-page .detail-row:last-child {
    border-bottom: none;
}

.card-details-page .detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.card-details-page .detail-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-details-page .action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

.card-details-page .action-btn:hover {
    background: var(--bs-primary);
    color: white;
    transform: scale(1.1);
}

/* Default section header */
.card-details-page .section-header {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Card Information Header - Blue to Purple */
.card-details-page .section-header.card-info {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Security Information Header - Red to Orange */
.card-details-page .section-header.security-info {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Contact Info Header - Green to Teal */
.card-details-page .section-header.contact-info {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

/* Financial Info Header - Purple to Pink */
.card-details-page .section-header.financial-info {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* Notes Header - Orange to Yellow */
.card-details-page .section-header.notes-info {
    background: linear-gradient(135deg, #f59e0b, #eab308);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Card Settings Header - Indigo to Blue */
.card-details-page .section-header.settings-info {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.card-details-page .card-visual {
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.card-details-page .card-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.card-details-page .card-visual::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.card-details-page .hero-section {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1) 0%, rgba(var(--bs-info-rgb), 0.1) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.card-details-page .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.card-details-page .stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.card-details-page .stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.card-details-page .network-logo {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.card-details-page .network-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.card-details-page .sensitive-data {
    background: rgba(var(--bs-warning-rgb), 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--bs-warning);
}

/* ===== ADD CARD PAGE STYLES ===== */
.ji-modern .hero-section {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1) 0%, rgba(var(--bs-info-rgb), 0.1) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.ji-modern .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.ji-modern .form-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.ji-modern .form-section:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Section Headers for Add Card */
.ji-modern .section-header {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Basic Information Header - Blue to Purple */
.ji-modern .section-header.basic-info {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Card Details Header - Red to Orange */
.ji-modern .section-header.card-details {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Contact Information Header - Green to Teal */
.ji-modern .section-header.contact-info {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

/* Additional Information Header - Purple to Pink */
.ji-modern .section-header.additional-info {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* Card Settings Header - Indigo to Blue */
.ji-modern .section-header.settings-info {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Notes Header - Orange to Yellow */
.ji-modern .section-header.notes-info {
    background: linear-gradient(135deg, #f59e0b, #eab308);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Financial Info Header - Purple to Pink */
.ji-modern .section-header.financial-info {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* Security Info Header - Red to Orange */
.ji-modern .section-header.security-info {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.ji-modern .form-control, 
.ji-modern .form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ji-modern .form-control:focus, 
.ji-modern .form-select:focus {
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.1);
    border-color: var(--bs-primary);
    transform: translateY(-1px);
}

.ji-modern .input-group-text {
    border-radius: 10px 0 0 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-right: none;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-info-rgb), 0.1));
}

.ji-modern .card-preview-enhanced {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: all 0.3s ease;
    position: relative;
}

.ji-modern .card-preview-enhanced:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.ji-modern .card-visual-preview {
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.ji-modern .card-visual-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.ji-modern .card-visual-preview::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.ji-modern .card-chip {
    width: 35px;
    height: 28px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 4px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.ji-modern .card-chip::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    border-radius: 2px;
}

.ji-modern .btn-primary {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.3);
}
.ji-modern .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.4);
}


.ji-modern .btn-danger {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
}
.ji-modern .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.ji-modern .btn-success {
    background: linear-gradient(135deg, #198754, #20c997);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}
.ji-modern .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.4);
}

.ji-modern .btn-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}
.ji-modern .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.ji-modern .btn-info {
    background: linear-gradient(135deg, #0dcaf0, #6f42c1);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.3);
}
.ji-modern .btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 202, 240, 0.4);
}

.ji-modern .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}
.ji-modern .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.ji-modern .btn-dark {
    background: linear-gradient(135deg, #212529, #495057);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 37, 41, 0.3);
}
.ji-modern .btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 37, 41, 0.4);
}

.ji-modern .btn-light {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(248, 249, 250, 0.3);
}
.ji-modern .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248, 249, 250, 0.4);
    color: #495057;
}



.ji-modern .alert {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ji-modern .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.ji-modern .settings-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ji-modern .settings-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* ===== NOTE VIEW PAGE MODERN STYLES ===== */
/* Scoped to .note-view-modern to prevent affecting other pages */

/* Modern design tokens */
.note-view-modern {
    --modern-border-radius: 24px;
    --modern-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --modern-shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --modern-shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.15);
    --glass-background: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Modern card styling */
.note-view-modern .modern-card {
    background: var(--glass-background);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--modern-border-radius);
    box-shadow: var(--modern-shadow-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.note-view-modern .modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--modern-shadow-heavy);
}

/* Category-based gradient headers */
.note-view-modern .glass-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.note-view-modern .glass-header.personal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.note-view-modern .glass-header.work {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
}

.note-view-modern .glass-header.ideas {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.note-view-modern .glass-header.important {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

.note-view-modern .glass-header.general {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
}

.note-view-modern .glass-header.study {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.note-view-modern .glass-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmerHeader 3s ease-in-out infinite;
}

@keyframes shimmerHeader {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Modern status pills */
.note-view-modern .status-pill {
    background: var(--glass-background);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--modern-shadow-light);
}

.note-view-modern .status-pill:hover {
    transform: translateY(-4px);
    box-shadow: var(--modern-shadow-medium);
    background: rgba(255, 255, 255, 0.95);
}

/* Modern tags */
.note-view-modern .tag-modern {
    background: rgba(255, 255, 255, 0.9);
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.note-view-modern .tag-modern:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

/* Sidebar cards */
.note-view-modern .sidebar-card {
    background: var(--glass-background);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--modern-border-radius);
    box-shadow: var(--modern-shadow-light);
    transition: all 0.3s ease;
}

.note-view-modern .sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--modern-shadow-medium);
}

/* Info items */
.note-view-modern .info-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.note-view-modern .info-item:last-child {
    border-bottom: none;
}

.note-view-modern .info-item:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    margin: 0 -1rem;
    padding: 1rem;
}

/* Action buttons */
.note-view-modern .action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.note-view-modern .action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.note-view-modern .action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.note-view-modern .action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.note-view-modern .action-btn.danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.note-view-modern .action-btn.danger:hover {
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.4);
}

/* Content area */
.note-view-modern .content-area {
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Locked content */
.note-view-modern .locked-content {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.note-view-modern .unlock-form {
    max-width: 400px;
    margin: 0 auto;
}

.note-view-modern .unlock-input {
    border-radius: 50px;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.note-view-modern .unlock-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Floating actions */
.note-view-modern .floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.note-view-modern .floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.note-view-modern .floating-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* Entrance animations */
.note-view-modern .animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern form controls within note-view-modern */
.note-view-modern .form-control {
    border-radius: 15px;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.note-view-modern .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

/* Responsive design */
@media (max-width: 768px) {
    .note-view-modern .floating-actions {
        bottom: 1rem;
        right: 1rem;
    }
    
    .note-view-modern .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .note-view-modern .modern-card:hover {
        transform: none;
    }
    
    .note-view-modern .status-pill:hover {
        transform: none;
    }
    
    .note-view-modern .action-btn:hover {
        transform: none;
    }
}

/* ===== NOTE FORM PAGES MODERN STYLES ===== */
/* Scoped to .note-form-modern to prevent affecting other pages */

/* Modern design tokens for forms */
.note-form-modern {
    --form-border-radius: 20px;
    --form-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --form-shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --form-glass-bg: rgba(255, 255, 255, 0.9);
    --form-glass-border: rgba(255, 255, 255, 0.2);
}

/* Modern form card styling */
.note-form-modern .form-card {
    background: var(--form-glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--form-glass-border);
    border-radius: var(--form-border-radius);
    box-shadow: var(--form-shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.note-form-modern .form-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--form-shadow-medium);
}

/* Form headers with gradients */
.note-form-modern .form-header {
    color: white;
    padding: 1.25rem 1.5rem;
    margin: 0;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.note-form-modern .form-header.basic-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.note-form-modern .form-header.content-info {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
}

.note-form-modern .form-header.settings-info {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.note-form-modern .form-header.preview-info {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

.note-form-modern .form-header.info-header {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
}

/* Modern form inputs */
.note-form-modern .modern-input,
.note-form-modern .modern-textarea {
    border-radius: 15px;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.note-form-modern .modern-input:focus,
.note-form-modern .modern-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
    outline: none;
}

.note-form-modern .modern-textarea {
    resize: vertical;
    min-height: 200px;
    line-height: 1.6;
}

/* Modern form labels */
.note-form-modern .form-label.fw-semibold {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.25px;
}

/* Form check elements */
.note-form-modern .form-check-input {
    border-radius: 6px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    width: 1.2em;
    height: 1.2em;
    transition: all 0.3s ease;
}

.note-form-modern .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.note-form-modern .form-check-input[type="radio"] {
    border-radius: 50%;
}

.note-form-modern .form-check-label {
    font-weight: 500;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.note-form-modern .form-check-label:hover {
    color: #667eea;
}

/* Preview section */
.note-form-modern .note-preview {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px dashed rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.note-form-modern .note-preview:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(248, 249, 250, 1);
}

.note-form-modern .preview-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.note-form-modern .preview-content {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.note-form-modern .preview-category {
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Modern action button */
.note-form-modern .action-btn-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.note-form-modern .action-btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.note-form-modern .action-btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.note-form-modern .action-btn-modern:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Entrance animations for forms */
.note-form-modern .animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: formFadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes formFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert and validation styling */
.note-form-modern .form-control.is-invalid,
.note-form-modern .modern-input.is-invalid,
.is_invalid,
.form-select.is-invalid,
.modern-textarea.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1) !important;
    border-radius: 10px !important;
}

.note-form-modern .form-control.is-valid,
.note-form-modern .modern-input.is-valid,
.note-form-modern .modern-textarea.is-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1) !important;
}

/* Small text styling */
.note-form-modern .text-muted {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.375rem;
}

/* Button group styling */
.note-form-modern .btn-outline-secondary {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(108, 117, 125, 0.3);
    transition: all 0.3s ease;
}

.note-form-modern .btn-outline-secondary:hover {
    background: rgba(108, 117, 125, 0.1);
    border-color: rgba(108, 117, 125, 0.5);
    transform: translateY(-2px);
}

.note-form-modern .btn-light {
    border-radius: 50px;
    padding: 1rem 2rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.note-form-modern .btn-light:hover {
    background: rgba(248, 249, 250, 1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Responsive adjustments for forms */
@media (max-width: 768px) {
    .note-form-modern .form-card:hover {
        transform: none;
    }
    
    .note-form-modern .action-btn-modern:hover {
        transform: none;
    }
    
    .note-form-modern .modern-input:focus,
    .note-form-modern .modern-textarea:focus {
        transform: none;
    }
    
    .note-form-modern .btn-outline-secondary:hover,
    .note-form-modern .btn-light:hover {
        transform: none;
    }
}

/* Loading state for forms */
.note-form-modern .action-btn-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.note-form-modern .action-btn-modern .spin {
    animation: formSpin 1s linear infinite;
}

@keyframes formSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== NOTES PAGE STYLES ===== */
/* Scoped to .notes-page to prevent affecting other pages */

.notes-page .note-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.notes-page .note-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.notes-page .note-card.pinned {
    border: 2px solid var(--bs-warning);
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.notes-page .note-card.private {
    border-left: 4px solid var(--bs-danger);
}

.notes-page .note-content {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    height: 6em;
}

.notes-page .note-tag {
    display: inline-block;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin: 2px;
}

.notes-page .category-badge {
    position: absolute;
    top: 12px;
    right: 50px;
    font-size: 0.7rem;
    padding: 4px 8px;
}

.notes-page .pin-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    color: var(--bs-warning);
    font-size: 1.2rem;
}

.notes-page .lock-icon {
    color: var(--bs-danger);
    font-size: 0.9rem;
}

.notes-page .floating-add-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.notes-page .note-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    transition: opacity 0.3s ease;
}

.notes-page .grid-view .row > div {
    margin-bottom: 20px;
}

.notes-page .locked-content-preview {
    background: rgba(220, 53, 69, 0.05);
    border: 1px dashed var(--bs-danger);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notes-page .locked-content-preview:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: var(--bs-danger);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.notes-page .unlock-note-btn {
    transition: all 0.3s ease;
}

.notes-page .unlock-note-btn:hover {
    transform: scale(1.1);
    color: var(--bs-danger) !important;
}

/* Enhanced statistics cards for notes page */
.notes-page .card.bg-primary,
.notes-page .card.bg-warning,
.notes-page .card.bg-danger,
.notes-page .card.bg-success {
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notes-page .card.bg-primary:hover,
.notes-page .card.bg-warning:hover,
.notes-page .card.bg-danger:hover,
.notes-page .card.bg-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.notes-page .card.bg-primary::before,
.notes-page .card.bg-warning::before,
.notes-page .card.bg-danger::before,
.notes-page .card.bg-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.notes-page .round {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Filter section styling */
.notes-page .collapse .card {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.notes-page .collapse .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.notes-page .form-control,
.notes-page .form-select {
    border-radius: 10px;
    border: 2px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.notes-page .form-control:focus,
.notes-page .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.1);
    transform: translateY(-1px);
}

.notes-page .input-group-text {
    border-radius: 10px 0 0 10px;
    border: 2px solid rgba(0,0,0,0.1);
    border-right: none;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-info-rgb), 0.1));
}

/* Action buttons styling */
.notes-page .btn {
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.notes-page .btn:hover {
    transform: translateY(-2px);
}

.notes-page .btn-primary {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    border: none;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.3);
}

.notes-page .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.4);
}

.notes-page .btn-light-primary {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
}

.notes-page .btn-light-primary:hover {
    background: rgba(var(--bs-primary-rgb), 0.2);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}

/* Dropdown menu styling */
.notes-page .dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.notes-page .dropdown-item {
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.2s ease;
}

.notes-page .dropdown-item:hover {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    transform: translateX(5px);
}

/* Empty state styling */
.notes-page #emptyState {
    padding: 4rem 2rem;
    text-align: center;
}

.notes-page #emptyState i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.notes-page #emptyState h4 {
    color: #6c757d;
    margin-bottom: 1rem;
}

.notes-page #emptyState p {
    color: #adb5bd;
    margin-bottom: 2rem;
}

/* Responsive adjustments for notes page */
@media (max-width: 768px) {
    .notes-page .note-card:hover {
        transform: none;
    }
    
    .notes-page .card.bg-primary:hover,
    .notes-page .card.bg-warning:hover,
    .notes-page .card.bg-danger:hover,
    .notes-page .card.bg-success:hover {
        transform: none;
    }
    
    .notes-page .btn:hover {
        transform: none;
    }
    
    .notes-page .form-control:focus,
    .notes-page .form-select:focus {
        transform: none;
    }
    
    .notes-page .collapse .card:hover {
        transform: none;
    }
    
    .notes-page .floating-add-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .notes-page .category-badge {
        right: 40px;
        font-size: 0.65rem;
    }
    
    .notes-page .note-actions {
        top: 8px;
        right: 8px;
    }
}

/* ===== ADD INVESTMENT PAGE STYLES ===== */
/* Scoped to .add-investment-page to prevent affecting other pages */

.add-investment-page .upload-zone {
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-investment-page .upload-zone:hover {
    border-color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.add-investment-page .upload-zone.dragover {
    border-color: var(--bs-success) !important;
    background-color: rgba(var(--bs-success-rgb), 0.1);
    transform: scale(1.02);
}

.add-investment-page .upload-input {
    cursor: pointer;
    z-index: 2;
}

.add-investment-page .file-item {
    background: rgba(var(--bs-primary-rgb), 0.05);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.add-investment-page .file-item:hover {
    background: rgba(var(--bs-primary-rgb), 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.add-investment-page .file-content {
    flex: 1;
    min-width: 0; /* Important for text truncation */
    margin-right: 0.75rem;
}

.add-investment-page .file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-weight: 600;
}

.add-investment-page .file-details {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.add-investment-page .file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-size: 1.25rem;
}

.add-investment-page .remove-file {
    background: rgba(var(--bs-danger-rgb), 0.1);
    border: 1px solid rgba(var(--bs-danger-rgb), 0.3);
    color: var(--bs-danger);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-investment-page .remove-file:hover {
    background: var(--bs-danger);
    color: white;
    transform: scale(1.1);
}


.form-control.is-invalid,
.modern-input.is-invalid,
.is_invalid,
.form-select.is-invalid,
.modern-textarea.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1) !important;
    border-radius: 10px !important;
}

/* ===== NOTE VIEW PAGE SPECIFIC STYLES ===== */
/* Scoped to .note-view-page to prevent affecting other pages */

.note-view-page .note-content-display {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    min-height: 200px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #2c3e50;
}

.note-view-page .note-content-display:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Enhanced styling for headings in note content */
.note-view-page .note-content-display h1 {
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 0.8em;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.3em;
}

.note-view-page .note-content-display h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 0.7em;
    color: #334155;
}

.note-view-page .note-content-display h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 0.6em;
    color: #475569;
}

.note-view-page .note-content-display h4 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: #64748b;
}

.note-view-page .note-content-display h5 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 0.4em;
    color: #64748b;
}

.note-view-page .note-content-display h6 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 0.3em;
    color: #64748b;
}

/* Enhanced paragraph spacing */
.note-view-page .note-content-display p {
    margin-bottom: 1em;
    line-height: 1.7;
}

/* Enhanced blockquote styling */
.note-view-page .note-content-display blockquote {
    border-left: 4px solid #3b82f6;
    background: #f8fafc;
    padding: 1em 1.5em;
    margin: 1em 0;
    font-style: italic;
    color: #475569;
}

/* Enhanced code styling */
.note-view-page .note-content-display code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.note-view-page .note-content-display pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.2em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.note-view-page .note-content-display pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Enhanced list styling */
.note-view-page .note-content-display ul, 
.note-view-page .note-content-display ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.note-view-page .note-content-display li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Enhanced link styling */
.note-view-page .note-content-display a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.note-view-page .note-content-display a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

/* Enhanced table styling if any */
.note-view-page .note-content-display table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.note-view-page .note-content-display table th,
.note-view-page .note-content-display table td {
    border: 1px solid #e2e8f0;
    padding: 0.7em;
    text-align: left;
}

.note-view-page .note-content-display table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

/* Enhanced image styling */
.note-view-page .note-content-display img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 1em 0;
}

/* Read-only indicator styling */
.note-view-page .ql-container.ql-snow {
    border: none;
}

.note-view-page .ql-snow .ql-editor.note-content-display {
    border: 1px solid #e3e8ef;
    border-radius: 8px;
}

/* Dark mode support */
[data-bs-theme="dark"] .note-view-page .note-content-display {
    background: #1e293b;
    border-color: #374151;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .note-view-page .note-content-display h1,
[data-bs-theme="dark"] .note-view-page .note-content-display h2,
[data-bs-theme="dark"] .note-view-page .note-content-display h3,
[data-bs-theme="dark"] .note-view-page .note-content-display h4,
[data-bs-theme="dark"] .note-view-page .note-content-display h5,
[data-bs-theme="dark"] .note-view-page .note-content-display h6 {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .note-view-page .note-content-display h1 {
    border-bottom-color: #374151;
}

[data-bs-theme="dark"] .note-view-page .note-content-display blockquote {
    background: #374151;
    border-left-color: #60a5fa;
    color: #cbd5e1;
}

[data-bs-theme="dark"] .note-view-page .note-content-display code {
    background: #374151;
    color: #fbbf24;
}

[data-bs-theme="dark"] .note-view-page .ql-snow .ql-editor.note-content-display {
    border-color: #374151;
}

/* Read-only badge styling */
.note-view-page .badge.bg-secondary-subtle {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Subtle animation for content area */
.note-view-page .note-content-display {
    transition: all 0.3s ease;
}

.note-view-page .note-content-display:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Professional content container */
.note-view-page .ql-container.ql-snow {
    position: relative;
    height: 100% !important;
    border: none !important;
}

.note-view-page .ql-container.ql-snow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 9px;
    background: linear-gradient(45deg, #f8fafc, #e2e8f0, #f8fafc);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.note-view-page .ql-container.ql-snow:hover::before {
    opacity: 1;
}

/* Enhanced spacing for content sections */
.note-view-page .note-content-display > *:first-child {
    margin-top: 0;
}

.note-view-page .note-content-display > *:last-child {
    margin-bottom: 0;
}

/* Dark mode enhancements for badge */
[data-bs-theme="dark"] .note-view-page .badge.bg-secondary-subtle {
    background-color: rgba(108, 117, 125, 0.2) !important;
    color: #cbd5e1 !important;
    border-color: rgba(108, 117, 125, 0.3);
}

[data-bs-theme="dark"] .note-view-page .ql-container.ql-snow::before {
    background: linear-gradient(45deg, #1e293b, #374151, #1e293b);
}

/* Enhanced locked content styling */
.note-view-page .locked-content-simple {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2 0%, #fdfafc 50%, #fef7f7 100%);
    border: 2px dashed rgba(239, 68, 68, 0.3) !important;
    border-radius: 12px !important;
    position: relative;
    overflow: hidden;
}

.note-view-page .locked-content-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(239, 68, 68, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(239, 68, 68, 0.05) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fecaca' fill-opacity='0.15'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 0;
}

.note-view-page .locked-content-simple > div {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 100%;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.note-view-page .locked-content-simple .ti-lock {
    color: #dc2626;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.2));
    display: block;
}

.note-view-page .locked-content-simple .ti-lock:hover {
    transform: scale(1.1);
    opacity: 1;
}

.note-view-page .locked-content-simple h3 {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(220, 38, 38, 0.1);
    text-align: center;
    width: 100%;
}

.note-view-page .locked-content-simple p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
    text-align: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.note-view-page .locked-content-simple .btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    min-width: 180px;
    display: block;
    margin: 0 auto;
}

.note-view-page .locked-content-simple .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
}

.note-view-page .locked-content-simple .btn:active {
    transform: translateY(0);
}

/* Dark mode for simple locked content */
[data-bs-theme="dark"] .note-view-page .locked-content-simple {
    background: linear-gradient(135deg, #2d1b1b 0%, #3a1f1f 100%);
    border-color: #7f1d1d !important;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple::before {
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%237f1d1d' fill-opacity='0.2'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple h3 {
    color: #f87171 !important;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple p {
    color: #d1d5db !important;
}

/* Enhanced dark mode styling for locked content */
[data-bs-theme="dark"] .note-view-page .locked-content-simple {
    background: linear-gradient(135deg, #1f1f23 0%, #252529 50%, #2a2a2f 100%) !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple::before {
    background: 
        radial-gradient(circle at 25% 25%, rgba(248, 113, 113, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(248, 113, 113, 0.08) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f87171' fill-opacity='0.12'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/svg%3E") repeat !important;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple .ti-lock {
    color: #f87171 !important;
    filter: drop-shadow(0 2px 4px rgba(248, 113, 113, 0.3)) !important;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple h3 {
    color: #f87171 !important;
    text-shadow: 0 1px 2px rgba(248, 113, 113, 0.2) !important;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple .btn {
    background: linear-gradient(135deg, #dc2626 0%, #f87171 100%) !important;
    box-shadow: 0 4px 14px rgba(248, 113, 113, 0.4) !important;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple .btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%) !important;
    box-shadow: 0 8px 25px rgba(248, 113, 113, 0.5) !important;
}

/* ===== NOTE VIEW PAGE SPECIFIC STYLES ===== */
/* Scoped to .note-view-page to prevent affecting other pages */

/* Compact Modern Header */
.note-view-page .note-header-compact {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s ease;
}

.note-view-page .note-header-compact:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.note-view-page .header-content {
    padding: 1.25rem 1.5rem;
}

.note-view-page .note-title-compact {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.note-view-page .status-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.note-view-page .badge-compact {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    gap: 0.25rem;
}

.note-view-page .badge-compact.pinned {
    background-color: #f59e0b;
}

.note-view-page .badge-compact.private {
    background-color: #ef4444;
}

.note-view-page .badge-compact.category {
    color: white;
}

.note-view-page .note-meta-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6b7280;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.note-view-page .meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.note-view-page .meta-item.reminder {
    color: #3b82f6;
    font-weight: 500;
}

.note-view-page .meta-separator {
    color: #d1d5db;
}

.note-view-page .tags-inline {
    display: flex;
    gap: 0.375rem;
    align-items: center;
}

.note-view-page .tag-compact {
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.note-view-page .tag-compact.more {
    background-color: #e5e7eb;
    color: #6b7280;
}

.note-view-page .actions-compact {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.note-view-page .btn-compact {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.note-view-page .btn-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.note-view-page .btn-compact.edit:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.note-view-page .btn-compact.share:hover {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}

.note-view-page .btn-compact.copy:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.note-view-page .btn-compact.delete:hover {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* Dark mode support */
[data-bs-theme="dark"] .note-view-page .note-header-compact {
    background: #1f2937;
    border-color: #374151;
}

[data-bs-theme="dark"] .note-view-page .note-title-compact {
    color: #f9fafb;
}

[data-bs-theme="dark"] .note-view-page .note-meta-compact {
    color: #9ca3af;
}

[data-bs-theme="dark"] .note-view-page .tag-compact {
    background-color: #374151;
    color: #d1d5db;
}

[data-bs-theme="dark"] .note-view-page .tag-compact.more {
    background-color: #4b5563;
    color: #9ca3af;
}

[data-bs-theme="dark"] .note-view-page .btn-compact {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
}

[data-bs-theme="dark"] .note-view-page .meta-separator {
    color: #4b5563;
}

/* Responsive design */
@media (max-width: 992px) {
    .note-view-page .header-content {
        padding: 1rem;
    }
    
    .note-view-page .note-title-compact {
        font-size: 1.25rem;
    }
    
    .note-view-page .actions-compact {
        margin-top: 0.75rem;
        justify-content: flex-start;
    }
    
    .note-view-page .status-badges {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .note-view-page .note-meta-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .note-view-page .meta-separator {
        display: none;
    }
    
    .note-view-page .btn-compact {
        width: 32px;
        height: 32px;
    }
}

.note-view-page .note-content-display {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    min-height: 200px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #2c3e50;
}

.note-view-page .note-content-display:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Enhanced styling for headings in note content */
.note-view-page .note-content-display h1 {
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 0.8em;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.3em;
}

.note-view-page .note-content-display h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 0.7em;
    color: #334155;
}

.note-view-page .note-content-display h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 0.6em;
    color: #475569;
}

.note-view-page .note-content-display h4 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: #64748b;
}

.note-view-page .note-content-display h5 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 0.4em;
    color: #64748b;
}

.note-view-page .note-content-display h6 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 0.3em;
    color: #64748b;
}

/* Enhanced paragraph spacing */
.note-view-page .note-content-display p {
    margin-bottom: 1em;
    line-height: 1.7;
}

/* Enhanced blockquote styling */
.note-view-page .note-content-display blockquote {
    border-left: 4px solid #3b82f6;
    background: #f8fafc;
    padding: 1em 1.5em;
    margin: 1em 0;
    font-style: italic;
    color: #475569;
}

/* Enhanced code styling */
.note-view-page .note-content-display code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.note-view-page .note-content-display pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.2em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.note-view-page .note-content-display pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Enhanced list styling */
.note-view-page .note-content-display ul, 
.note-view-page .note-content-display ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.note-view-page .note-content-display li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Enhanced link styling */
.note-view-page .note-content-display a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.note-view-page .note-content-display a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

/* Enhanced table styling if any */
.note-view-page .note-content-display table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.note-view-page .note-content-display table th,
.note-view-page .note-content-display table td {
    border: 1px solid #e2e8f0;
    padding: 0.7em;
    text-align: left;
}

.note-view-page .note-content-display table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

/* Enhanced image styling */
.note-view-page .note-content-display img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 1em 0;
}

/* Read-only indicator styling */
.note-view-page .ql-container.ql-snow {
    border: none;
}

.note-view-page .ql-snow .ql-editor.note-content-display {
    border: 1px solid #e3e8ef;
    border-radius: 8px;
}

/* Dark mode support */
[data-bs-theme="dark"] .note-view-page .note-content-display {
    background: #1e293b;
    border-color: #374151;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .note-view-page .note-content-display h1,
[data-bs-theme="dark"] .note-view-page .note-content-display h2,
[data-bs-theme="dark"] .note-view-page .note-content-display h3,
[data-bs-theme="dark"] .note-view-page .note-content-display h4,
[data-bs-theme="dark"] .note-view-page .note-content-display h5,
[data-bs-theme="dark"] .note-view-page .note-content-display h6 {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .note-view-page .note-content-display h1 {
    border-bottom-color: #374151;
}

[data-bs-theme="dark"] .note-view-page .note-content-display blockquote {
    background: #374151;
    border-left-color: #60a5fa;
    color: #cbd5e1;
}

[data-bs-theme="dark"] .note-view-page .note-content-display code {
    background: #374151;
    color: #fbbf24;
}

[data-bs-theme="dark"] .note-view-page .ql-snow .ql-editor.note-content-display {
    border-color: #374151;
}

/* Read-only badge styling */
.note-view-page .badge.bg-secondary-subtle {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Subtle animation for content area */
.note-view-page .note-content-display {
    transition: all 0.3s ease;
}

.note-view-page .note-content-display:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Professional content container */
.note-view-page .ql-container.ql-snow {
    position: relative;
    height: 100% !important;
    border: none !important;
}

.note-view-page .ql-container.ql-snow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 9px;
    background: linear-gradient(45deg, #f8fafc, #e2e8f0, #f8fafc);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.note-view-page .ql-container.ql-snow:hover::before {
    opacity: 1;
}

/* Enhanced spacing for content sections */
.note-view-page .note-content-display > *:first-child {
    margin-top: 0;
}

.note-view-page .note-content-display > *:last-child {
    margin-bottom: 0;
}

/* Dark mode enhancements for badge */
[data-bs-theme="dark"] .note-view-page .badge.bg-secondary-subtle {
    background-color: rgba(108, 117, 125, 0.2) !important;
    color: #cbd5e1 !important;
    border-color: rgba(108, 117, 125, 0.3);
}

[data-bs-theme="dark"] .note-view-page .ql-container.ql-snow::before {
    background: linear-gradient(45deg, #1e293b, #374151, #1e293b);
}

/* Enhanced locked content styling */
.note-view-page .locked-content-simple {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2 0%, #fdfafc 50%, #fef7f7 100%);
    border: 2px dashed rgba(239, 68, 68, 0.3) !important;
    border-radius: 12px !important;
    position: relative;
    overflow: hidden;
}

.note-view-page .locked-content-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(239, 68, 68, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(239, 68, 68, 0.05) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fecaca' fill-opacity='0.15'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 0;
}

.note-view-page .locked-content-simple > div {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 100%;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.note-view-page .locked-content-simple .ti-lock {
    color: #dc2626;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.2));
    display: block;
}

.note-view-page .locked-content-simple .ti-lock:hover {
    transform: scale(1.1);
    opacity: 1;
}

.note-view-page .locked-content-simple h3 {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(220, 38, 38, 0.1);
    text-align: center;
    width: 100%;
}

.note-view-page .locked-content-simple p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
    text-align: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.note-view-page .locked-content-simple .btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    min-width: 180px;
    display: block;
    margin: 0 auto;
}

.note-view-page .locked-content-simple .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
}

.note-view-page .locked-content-simple .btn:active {
    transform: translateY(0);
}

/* Dark mode for simple locked content */
[data-bs-theme="dark"] .note-view-page .locked-content-simple {
    background: linear-gradient(135deg, #2d1b1b 0%, #3a1f1f 100%);
    border-color: #7f1d1d !important;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple::before {
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%237f1d1d' fill-opacity='0.2'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple h3 {
    color: #f87171 !important;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple p {
    color: #d1d5db !important;
}

/* Enhanced dark mode styling for locked content */
[data-bs-theme="dark"] .note-view-page .locked-content-simple {
    background: linear-gradient(135deg, #1f1f23 0%, #252529 50%, #2a2a2f 100%) !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple::before {
    background: 
        radial-gradient(circle at 25% 25%, rgba(248, 113, 113, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(248, 113, 113, 0.08) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f87171' fill-opacity='0.12'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/svg%3E") repeat !important;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple .ti-lock {
    color: #f87171 !important;
    filter: drop-shadow(0 2px 4px rgba(248, 113, 113, 0.3)) !important;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple h3 {
    color: #f87171 !important;
    text-shadow: 0 1px 2px rgba(248, 113, 113, 0.2) !important;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple .btn {
    background: linear-gradient(135deg, #dc2626 0%, #f87171 100%) !important;
    box-shadow: 0 4px 14px rgba(248, 113, 113, 0.4) !important;
}

[data-bs-theme="dark"] .note-view-page .locked-content-simple .btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%) !important;
    box-shadow: 0 8px 25px rgba(248, 113, 113, 0.5) !important;
}

/* Bookmarks Page Styles */
.bookmarks-page .stats-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.bookmarks-page .stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.bookmarks-page .stats-card-hover {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.bookmarks-page .stats-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: rgba(var(--bs-primary-rgb), 0.2);
}

.bookmarks-page .table-hover tbody tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.bookmarks-page .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.bookmarks-page .text-white-50 {
    color: rgba(255, 255, 255, 0.7);
}

.bookmarks-page .favicon-img {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.bookmarks-page .bookmark-url {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bookmarks-page .tag-pill {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    margin: 0.1rem;
    border-radius: 12px;
}

/* Fix long URL overflow in bookmark details page */
.bookmark-details-page .bookmark-url-link,
.bookmark-details-page .fs-4 a {
    word-break: break-all;
    overflow-wrap: anywhere;
    display: inline-block;
    max-width: 100%;
}

/* Spinner Animation for IMAP Connection Test */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

