/* CACHE BUST v2.0 - ADMIN GRID FIX */
/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

/* Modern Clean Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

:root {
    /* Dark Theme - Landing Page Style */
    --background: hsl(210, 33%, 6%);
    --background-secondary: hsl(200, 17%, 12%);
    --background-tertiary: hsl(200, 14%, 17%);
    --background-elevated: hsl(200, 12%, 22%);
    --foreground: hsl(0, 0%, 100%);
    
    --primary-color: hsl(52, 99%, 54%);
    --primary-hover: hsl(52, 99%, 60%);
    --primary-foreground: hsl(210, 33%, 6%);
    
    --success-color: hsl(142, 71%, 45%);
    --warning-color: hsl(32, 100%, 50%);
    --danger-color: hsl(0, 84%, 60%);
    --info-color: hsl(207, 100%, 50%);
    
    --text-primary: hsl(0, 0%, 100%);
    --text-secondary: hsl(0, 0%, 70%);
    --text-light: hsl(0, 0%, 50%);
    
    --bg-primary: hsl(200, 17%, 12%);
    --bg-secondary: hsl(200, 14%, 17%);
    --bg-tertiary: hsl(200, 12%, 22%);
    
    --glass-bg: hsl(200, 17%, 12%);
    --glass-border: hsl(200, 10%, 28%);
    
    --border-color: hsl(200, 12%, 22%);
    --border-light: hsl(200, 10%, 28%);
    --border-focus: hsl(52, 99%, 54%);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Body Styles */
body {
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Forgot Password Button Styles */
.forgot-password-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-btn:hover {
    color: var(--primary-color);
    background: var(--bg-tertiary);
    transform: translateX(2px);
}

.forgot-password-btn .link-icon {
    font-size: 0.875rem;
}

/* Enhanced Web Background Styles */
.web-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: var(--background);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
}

.floating-dots {
    display: none;
}

.dot {
    display: none;
}

.web-line {
    position: absolute;
    background: black;
    z-index: 500;
    width: 1px;
    height: 30px;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.web-line:hover {
    opacity: 0.4;
}

@keyframes moveGrid {
    0% {
        transform: translateX(0px) translateY(0px);
    }
    100% {
        transform: translateX(20px) translateY(20px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(20px) translateX(10px);
    }
}

@keyframes floating {
    0%, 100% { 
        transform: translateY(0px) rotate(-2deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(2deg); 
    }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Modern Cards */
.modern-card {
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.modern-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

/* Dashboard Container */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-container.wide-mode {
    max-width: 100%;
    padding: 0 2rem;
}

/* Header */
.dashboard-header {
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: relative; /* Not sticky on mobile */
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .dashboard-header {
        position: sticky;
        top: 0;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-foreground) !important;
    letter-spacing: -0.02em;
    background: var(--primary-color) !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.logo-icon {
    font-size: 1.75rem;
    animation: floating 3s ease-in-out infinite;
}

.logo-text {
    position: relative;
}

.logo-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    animation: shine 3s linear infinite;
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.user-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.user-email {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Modern Buttons */
.modern-btn, .modern-btn-primary, .modern-btn-secondary, .modern-btn-danger, .modern-btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: 'IBM Plex Sans', sans-serif;
}

.modern-btn-primary, .submit-btn {
    background: var(--primary-color);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-md);
}

.modern-btn-primary:hover, .submit-btn:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

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

.modern-btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.modern-btn-danger {
    background: var(--danger-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.modern-btn-danger:hover {
    background: #dc2626;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.modern-btn-dark {
    background: var(--primary-color);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-md);
}

.modern-btn-dark:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.wide-mode-toggle {
    position: relative;
}

.wide-mode-toggle.active {
    background: var(--primary-color);
    color: var(--primary-foreground);
}

.btn-icon {
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.btn-text {
    font-weight: 500;
}

/* Button shine effect */
.modern-btn-primary::before, .submit-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;
}

.modern-btn-primary:hover::before, .submit-btn:hover::before {
    left: 100%;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    margin: 2rem auto;
    max-width: 500px;
    padding: 0 2rem;
    position: relative; /* Not sticky on mobile */
    z-index: 999;
}

@media (min-width: 768px) {
    .main-nav {
        position: sticky !important;
        top: 11vh !important;
    }
}

.nav-container {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    display: flex;
    position: relative;
    backdrop-filter: blur(20px);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    flex: 1;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.nav-btn:hover {
    color: var(--text-primary);
}


.nav-slider {
    position: absolute;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    width: 100%;
}

.dashboard-container.wide-mode .main-content {
    padding: 2rem 3rem;
}

.tab-content {
    display: none;
    animation: slideIn 0.5s ease-out;
}

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

/* Headers and Titles */
.tab-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title {
    font-family: 'Space Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Forms */
.modern-form {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.input-group.focused .modern-label {
    color: var(--primary-color);
}

.modern-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.label-icon {
    font-size: 1rem;
}

.modern-label svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.modern-input {
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    background: var(--bg-secondary);
}

.modern-input::placeholder {
    color: var(--text-light);
}

.modern-input[type="textarea"] {
    resize: vertical;
    min-height: 100px;
}

/* Custom Checkboxes and Radios */
.modern-checkbox, .modern-radio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
}

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

.checkbox-mark, .radio-mark {
    width: 20px;
    height: 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}

.radio-mark {
    border-radius: 50%;
}

.modern-checkbox input[type="checkbox"]:checked + .checkbox-mark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.modern-checkbox input[type="checkbox"]:checked + .checkbox-mark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-foreground);
    font-size: 12px;
    font-weight: bold;
}

.modern-radio input[type="radio"]:checked + .radio-mark {
    border-color: var(--primary-color);
}

.modern-radio input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.checkbox-text, .radio-text {
    color: var(--text-primary);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

/* Info Badges */
.info-badge {
    font-size: 0.75rem;
    color: var(--info-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-top: 0.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

/* Tables */
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
}

}

/* Selection Message */
.selection-message {
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.message-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.message-icon {
    font-size: 3rem;
    animation: floating 2s ease-in-out infinite;
}

.selection-message p {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

/* Edit Form Container */
.edit-form-container {
    margin-bottom: 2rem;
    overflow: hidden;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    line-height: 1;
}

.close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Summary Cards */
.summary-section {
    padding: 2rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.summary-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.summary-card:hover::before {
    transform: scaleY(1);
}

.card-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.card-content h4 {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Space Mono', monospace;
}

/* Status-specific colors */
.summary-card.unpaid .card-icon,
.summary-card.unpaid .amount {
    color: var(--danger-color);
}

.summary-card.paid .card-icon,
.summary-card.paid .amount {
    color: var(--success-color);
}

.summary-card.partial .card-icon,
.summary-card.partial .amount {
    color: var(--warning-color);
}

.summary-card.cancelled .card-icon,
.summary-card.cancelled .amount {
    color: var(--text-light);
}

/* Split summaries */
.split-summary, .individual-summary {
    margin-bottom: 2rem;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.person-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.person-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.person-icon {
    font-size: 2rem;
}

.person-content h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.person-card.roxana {
    border-left: 4px solid #ec4899;
}

.person-card.ramona {
    border-left: 4px solid #8b5cf6;
}

/* People Management Styles */
.people-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.person-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.person-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

.person-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.person-split {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.split-input {
    width: 80px;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.75rem;
}

.remove-person {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
}

.remove-person:hover {
    background: #dc2626;
}

.people-actions {
    margin-top: 0.75rem;
}

.input-with-button {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.input-with-button .modern-input {
    flex: 1;
}

.dynamic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Responsive adjustments for people management */
@media (max-width: 768px) {
    .person-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .person-split {
        width: 100%;
        justify-content: space-between;
    }
    
    .input-with-button {
        flex-direction: column;
    }
}

.person-card.person3 {
    border-left: 4px solid #10b981;
}

.person-card.person4 {
    border-left: 4px solid #f59e0b;
}

.person-card.person5 {
    border-left: 4px solid #6366f1;
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

/* Messages */
.message-container {
    margin: 1rem 2rem;
}

.message {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    animation: slideIn 0.3s ease-out;
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.message.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

.message-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.message-text {
    flex: 1;
}

/* Auth Styles */
.auth-body {
    background: var(--background);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-header-top {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 0;
    z-index: 10;
    position: relative;
}

.auth-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-title {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}

.title-icon {
    font-size: 2.5rem;
    animation: floating 3s ease-in-out infinite;
}

.title-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.6) 50%, transparent 60%);
    animation: shine 3s linear infinite;
    pointer-events: none;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.auth-form {
    padding: 0 2rem 1rem;
}

.form-container {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.auth-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn-shine {
    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;
}

.auth-btn:hover .btn-shine {
    left: 100%;
}

.auth-switch {
    text-align: center;
    padding: 1rem 2rem 2rem;
    margin-top: 1rem;
}

.auth-switch p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--primary-hover);
    transform: translateX(2px);
}

.link-icon {
    font-size: 0.875rem;
}

.auth-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0,0,0,0.05), rgba(0,0,0,0.02));
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

.auth-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-container.wide-mode .main-content {
        padding: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
        overflow-x: auto;
    }
    

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-right {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .user-info {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-container {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .nav-btn {
        justify-content: flex-start;
        width: 100%;
    }
    
    .summary-grid,
    .split-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions,
    .bulk-actions {
        flex-direction: column;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .modern-form,
    .edit-form-container .modern-form {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
    

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Focus states for accessibility */
.modern-input:focus,
.modern-btn:focus,
.nav-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .web-background,
    .floating-dots,
    .grid-overlay,
    .auth-decoration {
        display: none;
    }
    
    .modern-card,
    .glass-panel {
        background: var(--bg-primary);
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Admin Panel Styles */
.admin-users-grid .user-card {
    /* Inherits from .modern-card */
}

.admin-users-grid .user-card:hover {
    border-color: var(--primary-color);
}

.admin-users-grid .user-card-content {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 2rem;
    padding: 2rem;
}

.user-info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-right: 2rem;
    border-right: 1px solid var(--border-light);
    min-width: 150px;
}

.user-card .user-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.user-card .user-avatar svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.user-id {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    word-break: break-all;
}

.user-created {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.user-actions-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.action-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    align-items: center;
}

.action-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-label svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.action-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-input-group .modern-input {
    flex: 1;
    margin-bottom: 0;
}

.action-input-group .icon-only-btn {
    min-width: auto;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-input-group .icon-only-btn svg {
    width: 20px;
    height: 20px;
}

.action-spacer {
    width: 140px;
}

.action-row .modern-btn-danger {
    justify-content: center;
}

/* Admin Tab Specific Overrides */
#admin-tab {
    width: 100%;
    max-width: none;
}

#admin-tab #users-list {
    width: 100%;
    padding: 0;
    max-width: none;
}

#admin-tab .tab-header {
    margin-bottom: 2rem;
}

#admin-tab .section-title {
    font-size: 2.25rem;
}

#admin-tab .admin-users-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-flow: row !important;
    gap: 2rem !important;
}

/* Responsive Admin Styles */
@media (max-width: 600px) {
    .admin-users-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .admin-users-grid .user-card-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .user-info-section {
        flex-direction: row;
        padding-right: 0;
        padding-bottom: 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    
    .user-meta {
        text-align: left;
        align-items: flex-start;
    }
    
    .action-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .action-spacer {
        display: none;
    }
}
/* Row selector checkbox styling */
.row-selector {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.row-selector:hover {
    transform: scale(1.1);
}

/* Clickable table rows */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    background-color: var(--background-elevated) !important;
}

    background-color: rgba(255, 215, 0, 0.1) !important;
    border-left: 3px solid var(--primary-color);
}

/* ========================================
   ULTRA-MODERN HEADER REDESIGN
   ======================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Modern Action Button (Wide Mode Toggle) */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--background-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.2s;
}

.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.action-btn:hover::before {
    opacity: 0.1;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

/* Ultra-Modern User Badge */
.user-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--background-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-badge:hover {
    border-color: var(--border-focus);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.15);
}

.user-badge .user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), hsl(52, 99%, 45%));
    border-radius: var(--radius-md);
    color: var(--primary-foreground);
    flex-shrink: 0;
}

.user-badge .user-avatar svg {
    width: 18px;
    height: 18px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.user-email {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
    font-family: inherit;
}

.logout-link:hover {
    color: var(--danger-color);
}

.logout-link svg {
    width: 14px;
    height: 14px;
}

.logout-link span {
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-email {
        max-width: 150px;
    }
    
    .user-badge {
        padding: 0.4rem 0.6rem 0.4rem 0.4rem;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .user-email {
        font-size: 12px;
        max-width: 120px;
    }
    
    .logout-link {
        font-size: 11px;
    }
}

/* ========================================
   ENHANCED NAVIGATION TABS
   ======================================== */

.main-nav {
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.nav-container {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:hover {
    background: var(--background-elevated);
    color: var(--text-primary);
}

.nav-btn.active {
    background: var(--background-elevated);
    border-color: var(--border-light);
    color: var(--primary-color);
}

.nav-btn.active::before {
    transform: scaleX(1);
}

.nav-icon {
    display: flex;
    align-items: center;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
        gap: 0.25rem;
    }
    
    .nav-btn {
        padding: 0.625rem 1rem;
        font-size: 13px;
    }
    
    .nav-text {
        display: none;
    }
    
    .nav-btn {
        justify-content: center;
        min-width: 44px;
    }
}

/* ========================================
   ULTRA-MODERN FORM ELEMENTS
   ======================================== */

.modern-input,
.modern-select {
    background: var(--background-elevated);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.modern-input:hover,
.modern-select:hover {
    border-color: var(--border-focus);
    background: var(--background-tertiary);
}

.modern-input:focus,
.modern-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    background: var(--background-tertiary);
}

/* Modern Primary Button */
.modern-btn-primary {
    background: var(--primary-color);
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.875rem 1.75rem;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.modern-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s;
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.modern-btn-primary:hover::before {
    opacity: 1;
}

.modern-btn-primary:active {
    transform: translateY(0);
}

.modern-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Modern Secondary Button */
.modern-btn-secondary {
    background: var(--background-elevated);
    color: var(--text-primary);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.875rem 1.75rem;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.modern-btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--background-tertiary);
    transform: translateY(-2px);
}

.modern-btn-secondary:active {
    transform: translateY(0);
}

/* Modern Danger Button */
.modern-btn-danger {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.875rem 1.75rem;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.modern-btn-danger:hover {
    background: hsl(0, 84%, 50%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.modern-btn-danger:active {
    transform: translateY(0);
}

/* Enhanced Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.025em;
}

.status-paid {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-unpaid {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-partial {
    background: rgba(251, 146, 60, 0.15);
    color: var(--warning-color);
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.status-cancelled {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-light);
    border: 1px solid rgba(156, 163, 175, 0.3);
}

/* ========================================
   ULTRA-MODERN TABLE DESIGN
   ======================================== */






/* Enhanced clickable rows */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.2s;
}

    background: var(--background-elevated) !important;
    transform: scale(1.01);
}

    opacity: 0.5;
}

    background: rgba(255, 215, 0, 0.08) !important;
    border-left: 3px solid var(--primary-color);
}

    opacity: 1;
}

/* Table container with modern scrollbar */
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

    height: 8px;
}

    background: var(--background-secondary);
    border-radius: var(--radius-sm);
}

    background: var(--border-light);
    border-radius: var(--radius-sm);
}

    background: var(--primary-color);
}

/* ========================================
   ENHANCED CARDS & PANELS
   ======================================== */

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: var(--border-focus);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.section-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.section-subtitle svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

/* Enhanced Info Badge */
.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: var(--background-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.info-badge:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Modern Radio Buttons */
.modern-radio {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: var(--background-elevated);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modern-radio:hover {
    border-color: var(--primary-color);
    background: var(--background-tertiary);
}

.modern-radio input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.modern-radio input[type="radio"]:checked {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.modern-radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary-foreground);
    border-radius: 50%;
}

.radio-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Modern Checkbox */
.modern-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.modern-checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.modern-checkbox input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}

.modern-checkbox input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.modern-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-foreground);
    font-size: 14px;
    font-weight: bold;
}

.modern-checkbox label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
}

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

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

.modern-card,
.glass-panel {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Scrollbar for entire page */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 6px;
    border: 3px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Active state for wide mode button */
.action-btn.active {
    background: var(--primary-color);
    color: var(--primary-foreground);
    border-color: var(--primary-color);
}

.action-btn.active:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}
/* FORCE TABLE RESET */





/* FIX TABLE COLUMN ALIGNMENT */




/* ========================================
   ======================================== */

    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    background: var(--background-secondary);
}

    padding: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

    cursor: pointer;
    transition: background 0.2s;
}

    background: var(--background-elevated);
}

/* ========================================
   CLEAN FIXES - NO CONFLICTS
   ======================================== */

/* 1. Fix Manage Bills button */
.logo-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    color: var(--primary-foreground);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), hsl(52, 99%, 45%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 2. Icon-only buttons for edit form */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.icon-btn-primary {
    background: var(--primary-color);
    color: var(--primary-foreground);
}

.icon-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.icon-btn-danger {
    background: var(--danger-color);
    color: white;
}

.icon-btn-danger:hover {
    background: hsl(0, 84%, 50%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* 3. Table - SIMPLE AND CLEAN */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.modern-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    background: var(--background-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modern-table tbody td {
    padding: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.clickable-row {
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.clickable-row:hover {
    background: var(--background-elevated);
}

.clickable-row.active-row {
    background: rgba(255, 215, 0, 0.08);
    border-left: 3px solid var(--primary-color);
}

/* 4. User badge layout */
.user-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--background-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
}

/* Logo button styling */
.logo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-color);
    color: var(--primary-foreground);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    transition: all 0.2s;
}

.logo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.logo-btn svg {
    width: 24px;
    height: 24px;
}

/* Form grid - 3 columns */

/* Modern grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

#dashboardContainer {
    position: relative;
    z-index: 1;
}
