/* Custom CSS for Rate Comparison Portal - Professional Neon Theme */

:root {
    /* Neon Color Palette */
    --primary-color: #00d4ff;
    --primary-dark: #0099cc;
    --success-color: #00ff88;
    --danger-color: #ff3366;
    --warning-color: #ffaa00;
    --info-color: #00d4ff;
    --purple-neon: #b026ff;
    --cyan-neon: #00ffff;
    --pink-neon: #ff00ff;
    --green-neon: #00ff88;
    
    /* Dark Theme Colors */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 35, 0.8);
    --bg-card-hover: rgba(30, 30, 50, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-neon: rgba(0, 212, 255, 0.3);
}

/* Legacy neon shell: only pages without Gen Z body class from base.html */
body:not(.rate-portal-theme):not(.portal-genz) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container-fluid {
    flex: 1;
}

/* Professional Neon Navbar */
.navbar {
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-neon);
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #00d4ff 0%, #b026ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    letter-spacing: -0.02em;
}

.navbar-brand i {
    margin-right: 10px;
    color: var(--cyan-neon);
    filter: drop-shadow(0 0 10px var(--cyan-neon));
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-secondary) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    margin: 0 0.25rem;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan-neon), var(--purple-neon));
    transition: width 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: var(--text-primary) !important;
    background: rgba(0, 212, 255, 0.1);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active {
    font-weight: 600;
    color: var(--text-primary) !important;
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.nav-link.active::before {
    width: 80%;
}

/* Professional Neon Cards (hub uses body.rate-portal-theme — see rate_portal_genz.css) */
body:not(.rate-portal-theme):not(.portal-genz) .card {
    border-radius: 16px;
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-neon);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

body:not(.rate-portal-theme):not(.portal-genz) .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan-neon), var(--purple-neon), var(--pink-neon));
    opacity: 0;
    transition: opacity 0.4s ease;
}

body:not(.rate-portal-theme):not(.portal-genz) .card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    background: var(--bg-card-hover);
}

body:not(.rate-portal-theme):not(.portal-genz) .card:hover::before {
    opacity: 1;
}

body:not(.rate-portal-theme):not(.portal-genz) .card-header {
    border-radius: 16px 16px 0 0 !important;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(176, 38, 255, 0.1) 100%);
    border-bottom: 1px solid var(--border-neon);
    color: var(--text-primary);
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
}

/* Professional Neon Buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.5rem;
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(0, 212, 255, 0.4),
        0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00ffff 0%, #00d4ff 100%);
    box-shadow: 
        0 10px 30px rgba(0, 212, 255, 0.5),
        0 0 40px rgba(0, 212, 255, 0.3);
}

.btn-success {
    background: #f5c400;
    color: #ffffff;
    box-shadow: none;
}

.btn-success:hover {
    background: #d4a800;
    color: #ffffff;
    box-shadow: none;
}

.btn-danger {
    background: linear-gradient(135deg, #ff3366 0%, #cc0033 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.btn-outline-primary {
    border: 2px solid #f5c400;
    color: #f5c400;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #f5c400;
    color: #0a0a0a;
    box-shadow: none;
}

.btn i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Professional Neon Form Controls */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    background: rgba(20, 20, 35, 0.6);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-control::placeholder, .form-select::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-control:focus, .form-select:focus {
    border-color: var(--cyan-neon);
    background: rgba(20, 20, 35, 0.8);
    box-shadow: 
        0 0 0 4px rgba(0, 212, 255, 0.1),
        0 0 20px rgba(0, 212, 255, 0.2),
        inset 0 0 10px rgba(0, 212, 255, 0.05);
    outline: none;
    color: var(--text-primary);
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* Professional Neon Alerts */
.alert {
    border-radius: 12px;
    border: 1px solid;
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    color: var(--green-neon);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.alert-danger {
    background: rgba(255, 51, 102, 0.1);
    border-color: rgba(255, 51, 102, 0.3);
    color: var(--danger-color);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.2);
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--cyan-neon);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border-color: rgba(255, 170, 0, 0.3);
    color: var(--warning-color);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.2);
}

/* Professional Neon Tables */
.table {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(20, 20, 35, 0.4);
    backdrop-filter: blur(10px);
}

.table thead {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(176, 38, 255, 0.2) 100%);
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-neon);
}

.table thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 1rem;
    border: none;
}

.table tbody tr {
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    transform: scale(1.01);
}

.table tbody td {
    color: var(--text-secondary);
    padding: 1rem;
    border: none;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 212, 255, 0.03);
}

/* Professional Neon Footer */
body:not(.rate-portal-theme):not(.portal-genz) .footer {
    background: #ffffff;
    backdrop-filter: none;
    border-top: 1px solid #e5e5e0;
    margin-top: auto;
    padding: 2rem 0;
    box-shadow: none;
}

body:not(.rate-portal-theme):not(.portal-genz) .footer .text-muted {
    color: #171717 !important;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* File input styling */
.form-control[type="file"] {
    padding: 0.5rem;
}

.form-control[type="file"]::-webkit-file-upload-button {
    padding: 0.375rem 0.75rem;
    margin-right: 1rem;
    background-color: #f5c400;
    color: #0a0a0a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-control[type="file"]::-webkit-file-upload-button:hover {
    background-color: #d4a800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    body:not(.rate-portal-theme):not(.portal-genz) h1 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* Table responsive wrapper */
.table-responsive {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Nav tabs styling */
.nav-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background-color: transparent;
}

.nav-tabs .nav-link:hover {
    border-bottom: 3px solid #dee2e6;
}

/* Form check styling */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Success/Error states */
.is-valid {
    border-color: var(--success-color);
}

.is-invalid {
    border-color: var(--danger-color);
}

/* Yellow page slider */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f5f5f3;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #f5c400;
    border-radius: 10px;
    border: 2px solid #f5f5f3;
    box-shadow: none;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4a800;
    box-shadow: none;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #f5c400 #f5f5f3;
}

/* Additional Professional Styles */
body:not(.rate-portal-theme):not(.portal-genz) h1,
body:not(.rate-portal-theme):not(.portal-genz) h2,
body:not(.rate-portal-theme):not(.portal-genz) h3,
body:not(.rate-portal-theme):not(.portal-genz) h4,
body:not(.rate-portal-theme):not(.portal-genz) h5,
body:not(.rate-portal-theme):not(.portal-genz) h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

body:not(.rate-portal-theme):not(.portal-genz) h1 {
    background: linear-gradient(135deg, #00d4ff 0%, #b026ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

body:not(.rate-portal-theme):not(.portal-genz) .text-muted {
    color: var(--text-secondary) !important;
}

body:not(.rate-portal-theme):not(.portal-genz) .card-body {
    color: var(--text-primary);
    padding: 1.5rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Portal Cards Special Styling */
.portal-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-card:hover {
    transform: translateY(-12px) scale(1.02);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    body:not(.rate-portal-theme):not(.portal-genz) h1 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
    
    body:not(.rate-portal-theme):not(.portal-genz) .card {
        margin-bottom: 1rem;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 991.98px) {
    /* Container adjustments */
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Typography */
    body:not(.rate-portal-theme):not(.portal-genz) h1 {
        font-size: 1.5rem !important;
    }
    
    body:not(.rate-portal-theme):not(.portal-genz) h2 {
        font-size: 1.3rem;
    }
    
    body:not(.rate-portal-theme):not(.portal-genz) h3 {
        font-size: 1.1rem;
    }
    
    /* Cards */
    body:not(.rate-portal-theme):not(.portal-genz) .card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    body:not(.rate-portal-theme):not(.portal-genz) .card-header {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem;
    }
    
    body:not(.rate-portal-theme):not(.portal-genz) .card-body {
        padding: 1rem !important;
    }
    
    /* Forms */
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-control, .form-select {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }
    
    /* Buttons */
    body:not(.rate-portal-theme):not(.portal-genz) .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
    
    /* Tables */
    .table {
        font-size: 0.85rem;
    }
    
    .table thead th {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .table tbody td {
        padding: 0.5rem 0.25rem;
    }
    
    /* Alerts */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Badges */
    .badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }
    
    /* List groups */
    .list-group-item {
        padding: 0.75rem;
    }
    
    /* Flash messages container */
    .container.mt-3 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    /* Extra small devices */
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    body:not(.rate-portal-theme):not(.portal-genz) h1 {
        font-size: 1.25rem !important;
    }
    
    body:not(.rate-portal-theme):not(.portal-genz) .card-header {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    body:not(.rate-portal-theme):not(.portal-genz) .card-body {
        padding: 0.75rem !important;
    }
    
    body:not(.rate-portal-theme):not(.portal-genz) .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .form-control, .form-select {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }
    
    /* Stack columns on mobile */
    .row > [class*="col-"] {
        margin-bottom: 1rem;
    }
    
    /* Table responsive wrapper */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    /* Sidebar mobile overlay */
    .sidebar.show {
        width: 280px;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    /* Mobile toggle button */
    .sidebar-mobile-toggle {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
    }
}

/* Table responsive wrapper improvements */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 600px;
}

@media (max-width: 575.98px) {
    .table-responsive table {
        min-width: 500px;
    }
}

/* Form row improvements for mobile */
@media (max-width: 767.98px) {
    .row .col-md-6,
    .row .col-md-4,
    .row .col-lg-6,
    .row .col-lg-4 {
        margin-bottom: 1rem;
    }
}

/* Sidebar mobile improvements */
@media (max-width: 991.98px) {
    .sidebar {
        width: 280px;
    }
    
    .sidebar.show {
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.6);
    }
    
    .sidebar-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .sidebar-brand {
        font-size: 1rem;
    }
    
    .sidebar-brand-text {
        display: none;
    }
    
    .sidebar.show .sidebar-brand-text {
        display: inline-block;
    }
}

/* Main content padding on mobile */
@media (max-width: 991.98px) {
    .main-content {
        padding-top: 1rem;
    }
    
    .main-content .container-fluid {
        padding-top: 0.5rem;
    }
}

/* Footer mobile */
@media (max-width: 767.98px) {
    body:not(.rate-portal-theme):not(.portal-genz) .footer {
        padding: 1rem 0;
        font-size: 0.85rem;
    }
}

/* Responsive heading */
.responsive-heading {
    font-size: 2.5rem;
}

@media (max-width: 991.98px) {
    .responsive-heading {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .responsive-heading {
        font-size: 1.5rem;
    }
}

/* Better spacing for mobile */
@media (max-width: 767.98px) {
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-4 {
        margin-top: 1.5rem !important;
    }
    
    .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Chart responsive */
@media (max-width: 767.98px) {
    canvas {
        max-width: 100%;
        height: auto !important;
    }
}




























