/* ===================================
   PROFESSIONAL TAX SERVICE WEBSITE
   Enhanced Modern CSS Framework - Light Theme
   Beautiful Gradients & Animations
   =================================== */

/* CSS Variables for Consistent Theming */
:root {
    /* Enhanced Primary Colors with Beautiful Gradients */
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #4dabf7;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-soft-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    
    /* Modern Secondary Colors */
    --secondary-color: #6c757d;
    --secondary-dark: #495057;
    --secondary-light: #adb5bd;
    --secondary-gradient: linear-gradient(135deg, #83a4d4 0%, #b6fbff 100%);
    
    /* Beautiful Status Colors with Gradients */
    --success-color: #10b981;
    --success-light: #34d399;
    --success-gradient: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --success-vibrant: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%);
    
    --danger-color: #ef4444;
    --danger-light: #f87171;
    --danger-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --danger-vibrant: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    
    --warning-color: #f59e0b;
    --warning-light: #fbbf24;
    --warning-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --warning-vibrant: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%);
    
    --info-color: #06b6d4;
    --info-light: #22d3ee;
    --info-gradient: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    --info-vibrant: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Enhanced Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Spacing and Layout */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
    --spacing-3xl: 3rem;

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --sidebar-text-color: rgba(255, 255, 255, 0.9);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.1);
    --sidebar-active-bg: rgba(255, 255, 255, 0.2);
}

/* ===================================
   GLOBAL STYLES
   =================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===================================
   LAYOUT STYLES
   =================================== */

.container-fluid {
    padding: 0;
    height: 100vh;
}

.row {
    height: 100%;
    margin: 0;
}

/* ===================================
   SIDEBAR STYLES
   =================================== */

.sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text-color);
    min-height: 100vh;
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-header img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: var(--spacing-md);
}

.sidebar-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--white);
}

.sidebar-header small {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    padding: var(--spacing-lg) 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-nav .nav-link {
    color: var(--sidebar-text-color);
    padding: var(--spacing-md) var(--spacing-xl);
    margin: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar-nav .nav-link:hover {
    background: var(--sidebar-hover-bg);
    color: var(--white);
    transform: translateX(5px);
}

.sidebar-nav .nav-link.active {
    background: var(--sidebar-active-bg);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--white);
    border-radius: 0 2px 2px 0;
}

.sidebar-nav .nav-link i {
    font-size: var(--font-size-lg);
    width: 24px;
    text-align: center;
}

.sidebar-nav .nav-link span {
    margin-left: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer .logout-link {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.sidebar-footer .logout-link:hover {
    background: rgba(220, 53, 69, 0.3);
    transform: translateX(0);
}

/* ===================================
   MAIN CONTENT STYLES
   =================================== */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--gray-50);
    transition: margin-left 0.3s ease;
}

.content-wrapper {
    padding: var(--spacing-2xl);
    max-width: 1400px;
    margin: 0 auto;
}

/* For admin pages using bootstrap grid */
.col-md-9.col-lg-10 {
    margin-left: 0;
    padding-left: var(--spacing-2xl);
    padding-right: var(--spacing-2xl);
}

/* ===================================
   CARD STYLES
   =================================== */

.content-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

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

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

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

.stats-card {
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.stats-card:hover::before {
    top: -25%;
    right: -25%;
}

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

.stats-icon {
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
}

/* ===================================
   TABLE STYLES
   =================================== */

.table {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
}

.table thead {
    background: linear-gradient(135deg, #4c63d2 0%, #5a67d8 100%);
    color: var(--white);
}

.table thead th {
    border: none;
    padding: var(--spacing-lg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--font-size-sm);
    background: linear-gradient(135deg, #3b4096 0%, #4c51bf 100%);
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.table tbody td {
    padding: var(--spacing-lg);
    border-color: var(--gray-200);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

.table-responsive {
    border-radius: var(--border-radius-lg);
}

/* ===================================
   FORM STYLES
   =================================== */

.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

/* ===================================
   BUTTON STYLES
   =================================== */

.btn {
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
}

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

.btn-success {
    background: var(--success-gradient);
    color: var(--white);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background: var(--warning-gradient);
    color: var(--white);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-info {
    background: var(--info-gradient);
    color: var(--white);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   BADGE STYLES
   =================================== */

.badge {
    font-weight: 600;
    font-size: var(--font-size-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary-gradient);
    color: var(--white);
}

.badge-success {
    background: var(--success-gradient);
    color: var(--white);
}

.badge-warning {
    background: var(--warning-gradient);
    color: var(--white);
}

.badge-danger {
    background: var(--danger-gradient);
    color: var(--white);
}

.badge-info {
    background: var(--info-gradient);
    color: var(--white);
}

.badge-secondary {
    background: var(--secondary-gradient);
    color: var(--white);
}

/* ===================================
   ALERT STYLES
   =================================== */

.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    font-weight: 500;
    box-shadow: var(--shadow-md);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    color: #0c4a6e;
    border-left: 4px solid var(--info-color);
}

/* ===================================
   MODAL STYLES
   =================================== */

.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    border-bottom: none;
    padding: var(--spacing-xl);
}

.modal-title {
    font-weight: 600;
    font-size: var(--font-size-lg);
}

.modal-body {
    padding: var(--spacing-2xl);
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: var(--spacing-xl);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* ===================================
   FILE UPLOAD STYLES
   =================================== */

.file-upload-container {
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.file-upload-container:hover {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.05);
}

.file-upload-container.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
}

.file-upload-area {
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-content {
    color: var(--gray-600);
}

.file-preview-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.file-preview-item .file-info {
    flex: 1;
    text-align: left;
    margin: 0 var(--spacing-md);
}

.file-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: var(--font-size-sm);
}

.file-size {
    color: var(--gray-500);
    font-size: var(--font-size-xs);
}

.remove-file {
    color: var(--danger-color);
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--border-radius-sm);
}

/* ===================================
   PRICE STYLES
   =================================== */

.price-tag {
    background: var(--success-gradient);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    font-size: var(--font-size-lg);
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    padding: var(--spacing-xs) 0;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
}

.requirements-list li i {
    color: var(--success-color);
    margin-right: var(--spacing-sm);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: var(--spacing-lg);
    }
    
    .col-md-9.col-lg-10 {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
    
    .sidebar-nav .nav-link span {
        display: inline;
    }
    
    .stats-card {
        margin-bottom: var(--spacing-lg);
    }
    
    .service-card {
        margin-bottom: var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    .content-wrapper {
        padding: var(--spacing-md);
    }
    
    .stats-card {
        text-align: center;
    }
    
    .stats-icon {
        position: static;
        transform: none;
        opacity: 0.2;
        margin-bottom: var(--spacing-sm);
    }
    
    .modal-body {
        padding: var(--spacing-lg);
    }
    
    .modal-header, 
    .modal-footer {
        padding: var(--spacing-lg);
    }
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0 30px 0;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    width: 100%;
    clear: both;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.footer-widget {
    position: relative;
    z-index: 1;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.footer-logo h4 {
    font-weight: 700;
    margin-bottom: 0;
    color: #3498db;
}

.footer-logo small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-link:hover::before {
    opacity: 1;
    left: -15px;
}

.contact-info {
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.contact-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-right: var(--spacing-md);
    margin-top: 2px;
    min-width: 20px;
}

.contact-details {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.contact-details strong {
    color: white;
    font-weight: 600;
}

.social-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: var(--spacing-xl) 0 var(--spacing-lg) 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-links-inline {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: flex-end;
}

.footer-link-inline {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link-inline:hover {
    color: white;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-section {
        padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    }

    .footer-links-inline {
        justify-content: center;
        margin-top: var(--spacing-md);
    }

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

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
    }
}

/* ===================================
   LOGIN PAGE STYLES
   =================================== */

.login-card {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-3xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-card h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ===================================
   ANIMATION CLASSES
   =================================== */

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

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-gradient-primary {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-success {
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--primary-gradient);
}

.bg-gradient-success {
    background: var(--success-gradient);
}

.bg-gradient-warning {
    background: var(--warning-gradient);
}

.bg-gradient-danger {
    background: var(--danger-gradient);
}

.bg-gradient-info {
    background: var(--info-gradient);
}

/* Loading spinner */
.spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Currency input formatting */
.currency-input {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* ===================================
   LIQUID BACKGROUND & GLASS (iOS-style)
   =================================== */

:root {
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --glass-blur: 16px;
}

.liquid-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(1200px 800px at 10% -10%, rgba(102, 126, 234, 0.25), transparent 60%),
        radial-gradient(800px 800px at 110% 10%, rgba(118, 75, 162, 0.25), transparent 60%),
        linear-gradient(135deg, #0f172a 0%, #111827 40%, #1f2937 100%);
    z-index: 0;
    overflow: hidden;
}

.liquid-blob {
    position: absolute;
    filter: blur(40px);
    opacity: 0.8;
    border-radius: 50% 40% 60% 50% / 50% 60% 40% 50%;
    animation: floatBlob 18s ease-in-out infinite;
    will-change: transform;
}

.liquid-blob.blob-1 { background: #4f46e5; width: 420px; height: 420px; top: -80px; left: -80px; animation-delay: 0s; }
.liquid-blob.blob-2 { background: #06b6d4; width: 360px; height: 360px; bottom: 10%; left: 15%; animation-delay: 2s; }
.liquid-blob.blob-3 { background: #22c55e; width: 500px; height: 500px; top: 20%; right: -120px; animation-delay: 4s; }
.liquid-blob.blob-4 { background: #f59e0b; width: 300px; height: 300px; bottom: -100px; right: 10%; animation-delay: 6s; }

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-15px, 20px) scale(0.98); }
    75% { transform: translate(30px, 10px) scale(1.03); }
}

.glass,
.glass-card,
.glass-nav,
.glass-hero,
.glass-section {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card { border-radius: var(--border-radius-xl); }

.glass-nav {
    border-radius: 16px;
    margin: 8px auto;
    max-width: 1140px;
}

.glass-hero {
    border-radius: 24px;
    padding: 80px 24px;
    color: var(--white);
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.btn-glass-light {
    background: rgba(255, 255, 255, 0.2);
    color: #0ea5e9;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-glass-light:hover::before {
    left: 100%;
}

.btn-glass-light:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-glass-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-glass-outline:hover::before {
    left: 100%;
}

.btn-glass-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Navbar tweaks for transparent style */
.navbar.is-glass {
    background: transparent;
    box-shadow: none;
}

.navbar.is-glass .navbar-brand,
.navbar.is-glass .nav-link { color: rgba(255,255,255,0.9) !important; }

/* Dynamic navbar colors based on background */
.navbar.is-glass {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar.is-glass .navbar-brand {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    font-weight: 700;
}

.navbar.is-glass .nav-link {
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-weight: 500;
    transition: all 0.3s ease;
}
.navbar.is-glass .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transform: scale(1.05);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.navbar.is-glass .nav-link:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    animation: shimmer 0.5s ease;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Section spacing to sit above fixed background */
main.liquid-stage {
    position: relative;
    z-index: 1;
    padding-top: 96px;
}