/* =========================================================================
   Coastal Explorer Admin Dashboard — Premium Cascading Stylesheets (CSS)
   ========================================================================= */

:root {
    /* Color Palette — Coastal Sea & Deep Ocean Theme */
    --bg-deep-ocean: #050c1a;
    --bg-coastal-blue: #0b192c;
    --bg-card: rgba(15, 32, 53, 0.7);
    --bg-card-hover: rgba(22, 45, 74, 0.85);
    --border-color: rgba(100, 255, 218, 0.15);
    --border-hover: rgba(100, 255, 218, 0.35);
    
    --primary-teal: #64ffda;
    --primary-glow: rgba(100, 255, 218, 0.4);
    --secondary-blue: #00b4d8;
    --secondary-glow: rgba(0, 180, 216, 0.3);
    
    --accent-sand: #f4d35e;
    --accent-coral: #ff7096;
    
    --text-primary: #f8f9fa;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    --danger: #ff5252;
    --danger-glow: rgba(255, 82, 82, 0.3);
    --success: #2ec4b6;
    --success-glow: rgba(46, 196, 182, 0.3);
    
    --shadow-premium: 0 10px 40px -10px rgba(2, 6, 12, 0.7);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 1. Global Reset & Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-deep-ocean);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* 2. Soft Ambient Glows */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-teal) 0%, transparent 70%);
    top: -150px;
    right: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-blue) 0%, transparent 70%);
    bottom: -100px;
    left: -150px;
}

/* 3. Glassmorphism Utilities */
.glassmorphism {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.glassmorphism:hover {
    border-color: var(--border-hover);
}

/* 4. Common Components (Buttons, Forms) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-teal);
    color: var(--bg-deep-ocean);
    box-shadow: 0 4px 14px var(--primary-glow);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.6);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 14px var(--danger-glow);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--danger);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
    background: rgba(100, 255, 218, 0.05);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-block {
    width: 100%;
}

.btn-icon-only {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

.btn-icon-only i {
    width: 18px;
    height: 18px;
}

/* Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: rgba(5, 12, 26, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input-wrapper textarea {
    padding-left: 16px;
    resize: vertical;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.15);
    background: rgba(5, 12, 26, 0.8);
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    pointer-events: none;
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Spinner Loader */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-teal);
    animation: spin 1s ease-in-out infinite;
}

.loading-spinner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

/* 5. Login Portal Screen */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    z-index: 10;
    position: relative;
}

.login-screen.hidden {
    display: none;
}

.login-card {
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    padding: 40px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.15) 0%, transparent 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.logo-icon i {
    width: 32px;
    height: 32px;
    color: var(--primary-teal);
    animation: pulseCompass 4s ease-in-out infinite;
}

@keyframes pulseCompass {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.login-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 6. Dashboard Layout Structure */
.app-dashboard {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.app-dashboard.hidden {
    display: none;
}

/* Sidebar Layout */
.sidebar {
    width: 280px;
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
    border-radius: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.brand-icon i {
    width: 22px;
    height: 22px;
}

.sidebar-brand h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.sidebar-brand span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
    position: relative;
    width: 100%;
}

.menu-item i {
    width: 18px;
    height: 18px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.menu-item.active {
    background: rgba(100, 255, 218, 0.08);
    color: var(--primary-teal);
    border-left: 3px solid var(--primary-teal);
    border-radius: 0 8px 8px 0;
    padding-left: 13px;
}

.badge {
    position: absolute;
    right: 16px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

.badge.hidden {
    display: none;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.btn-logout {
    width: 100%;
}

/* Main Content Workspace */
.main-content {
    flex-grow: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow-y: auto;
    height: 100vh;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.page-title h1 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.page-title p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.content-body {
    flex-grow: 1;
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-in-out forwards;
}

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

/* 7. Data Cards & Tables */
.data-card {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    width: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.search-bar input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    background: rgba(5, 12, 26, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-bar input:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.1);
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

/* Stats Pill */
.stats-summary {
    display: flex;
    gap: 12px;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-pill .label {
    color: var(--text-secondary);
}

.stat-pill .value {
    font-weight: 700;
    color: var(--text-primary);
}

.stat-pill.premium {
    background: rgba(100, 255, 218, 0.06);
    border-color: rgba(100, 255, 218, 0.15);
}

.stat-pill.premium .value {
    color: var(--primary-teal);
}

.stat-pill.pending {
    background: rgba(255, 112, 150, 0.06);
    border-color: rgba(255, 112, 150, 0.15);
}

.stat-pill.pending .value {
    color: var(--accent-coral);
}

/* Data Table UI */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 16px 24px;
}

.data-table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

/* Table elements */
.user-id-cell {
    font-family: monospace;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.email-cell {
    color: var(--text-secondary);
}

.time-cell {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Status toggles/indicators */
.status-pill-db {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill-db.premium {
    background: rgba(100, 255, 218, 0.1);
    color: var(--primary-teal);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.status-pill-db.free {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
}

.status-marker.exclamation {
    background: rgba(255, 112, 150, 0.15);
    color: var(--accent-coral);
    border: 1px solid rgba(255, 112, 150, 0.3);
}

.status-marker.checked {
    background: rgba(46, 196, 182, 0.15);
    color: var(--success);
    border: 1px solid rgba(46, 196, 182, 0.3);
}

/* Row Action Buttons Container */
.actions-cell {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Suggestions interactive links */
.kml-link-text {
    color: var(--secondary-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.kml-link-text:hover {
    color: var(--primary-teal);
    text-decoration: underline;
}

/* Filter Tab Headers */
.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    background: rgba(100, 255, 218, 0.08);
    color: var(--primary-teal);
    border-color: rgba(100, 255, 218, 0.15);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state i {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 0.95rem;
    margin-top: 4px;
}

/* 8. PayPal Grid & Live Preview */
.paypal-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: start;
}

.card-title-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-title-bar i {
    width: 20px;
    height: 20px;
    color: var(--primary-teal);
}

.card-title-bar h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.paypal-form {
    padding: 24px;
}

/* Premium Phone Simulator */
.preview-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preview-panel .card-title-bar {
    width: 100%;
}

.app-simulator {
    width: 310px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8), 0 0 0 4px #1a2530;
    border: 3px solid #334e68;
    position: relative;
    overflow: hidden;
}

/* Phone notch */
.app-simulator::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 20px;
    background: #000;
    border-radius: 0 0 15px 15px;
    z-index: 5;
}

.app-screen {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #0e1e38 0%, #050d1e 100%);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

/* Mobile App Popup Layout in Simulator */
.app-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    z-index: 2;
    backdrop-filter: blur(3px);
}

.app-dialog {
    background: #0a192f;
    border: 1px solid rgba(100, 255, 218, 0.25);
    border-radius: 18px;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.dialog-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    z-index: 10;
}

.dialog-close-btn i {
    width: 14px;
    height: 14px;
}

.dialog-image-container {
    height: 125px;
    width: 100%;
    overflow: hidden;
    border-bottom: 2px solid var(--primary-teal);
    position: relative;
}

.dialog-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.dialog-content {
    padding: 16px;
    text-align: center;
}

.dialog-desc {
    color: #e2e8f0;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 16px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-paypal-simulation {
    background: linear-gradient(135deg, #0070ba 0%, #00457c 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0,112,186,0.3);
}

.btn-paypal-simulation i {
    width: 12px;
    height: 12px;
}

/* 9. Modal Confirm Windows */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 12, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
    backdrop-filter: blur(6px);
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.modal-icon.warning {
    background: rgba(255, 82, 82, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.modal-icon i {
    width: 28px;
    height: 28px;
}

.modal h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions button {
    flex: 1;
}

/* 10. Toasts Notification Stack */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    background: rgba(15, 32, 53, 0.95);
    border-left: 4px solid var(--primary-teal);
    border-radius: 6px;
    padding: 14px 20px;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    pointer-events: auto;
    animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.toast.success i {
    color: var(--success);
}

.toast.error i {
    color: var(--danger);
}

.toast-body {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* 11. Scrollbars Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(100, 255, 218, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 255, 218, 0.25);
}

/* 12. Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .paypal-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-panel {
        order: -1; /* Place preview on top on tablet layouts */
    }
}

@media (max-width: 768px) {
    .app-dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
    }
    
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .menu-item {
        white-space: nowrap;
        padding: 8px 14px;
    }
    
    .menu-item.active {
        border-left: none;
        border-bottom: 3px solid var(--primary-teal);
        border-radius: 0 0 8px 8px;
        padding-left: 14px;
        padding-bottom: 5px;
    }
    
    .sidebar-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 10px;
    }
    
    .connection-status {
        margin-bottom: 0;
    }
    
    .btn-logout {
        width: auto;
    }
    
    .main-content {
        padding: 20px;
        height: auto;
    }
    
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .top-bar-actions {
        align-self: flex-end;
    }
    
    .card-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar {
        max-width: 100%;
    }
}
