/* Titillium Web font - harmonisé avec LomInvests - MUST BE FIRST */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600;700&display=swap');

/* Global Styles for XeoVision BIM Viewer */

* {
    box-sizing: border-box;
}

/* Logo style - adapt for dark mode */
.logo-light {
    filter: none;
}

.logo-dark {
    /* Inverser le noir en blanc tout en gardant le vert */
    filter: invert(1) hue-rotate(180deg);
}

/* Logo text styling - LomInnov */
.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo-lom {
    color: #7eb356;
}

.logo-innov {
    color: #1a1a2e;
}

body[data-theme="dark"] .logo-innov,
body:not([data-theme]) .logo-innov {
    color: #ffffff;
}

/* Sidebar icons - vert pastel harmonisé avec LomInvests */
.mud-drawer .mud-nav-link .mud-icon-root,
.mud-drawer .mud-nav-group .mud-icon-root,
.mud-drawer .mud-navmenu .mud-icon-root {
    color: #7eb356 !important;
    filter: drop-shadow(0 0 2px rgba(126, 179, 86, 0.3));
    transition: all 0.3s ease;
}

.mud-drawer .mud-nav-link:hover .mud-icon-root,
.mud-drawer .mud-nav-group:hover .mud-icon-root {
    filter: drop-shadow(0 0 4px rgba(126, 179, 86, 0.5));
    color: #9bc78a !important;
}

*, *::before, *::after {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override MudBlazor default font */
.mud-typography, .mud-button, .mud-input, .mud-select, .mud-menu-item, 
.mud-list-item, .mud-card, .mud-paper, .mud-drawer, .mud-appbar,
.mud-table, .mud-tabs, .mud-chip, .mud-alert, .mud-snackbar {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Dark mode styles - harmonisé avec LomInvests */
body[data-theme="dark"],
body:not([data-theme]) {
    background-color: #16162a;
    color: #ffffff;
}

/* Light mode styles */
body[data-theme="light"] {
    background-color: #f5f5f5;
    color: #333333;
}

#app {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Loading Animation */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Dark mode loading container - harmonisé avec LomInvests */
body[data-theme="dark"] .loading-container,
body:not([data-theme]) .loading-container {
    background-color: #16162a;
}

/* Light mode loading container */
body[data-theme="light"] .loading-container {
    background-color: #f5f5f5;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #2D2D2D;
    border-top: 4px solid #3E82F7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 20px;
    font-size: 16px;
    text-align: center;
}

body[data-theme="dark"] .loading-text,
body:not([data-theme]) .loading-text {
    color: #B0B0B0;
}

body[data-theme="light"] .loading-text {
    color: #666666;
}

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

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

/* Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #333;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

body[data-theme="dark"] ::-webkit-scrollbar-track,
body:not([data-theme]) ::-webkit-scrollbar-track {
    background: #2D2D2D;
}

body[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: #3E82F7;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #5094FF;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .loading-text {
        font-size: 14px;
        padding: 0 20px;
    }
}

/* Print Styles */
@media print {
    #blazor-error-ui {
        display: none;
    }

    .loading-container {
        display: none;
    }
}

/* Focus Styles for Accessibility */
button:focus,
.mud-button:focus,
.mud-icon-button:focus {
    outline: 2px solid #3E82F7;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --mud-palette-primary: #0066FF;
        --mud-palette-background: #000000;
        --mud-palette-surface: #1A1A1A;
        --mud-palette-text-primary: #FFFFFF;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner {
        animation: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* MudBlazor Theme Overrides */
.mud-theme-primary {
    color: #3E82F7 !important;
}

/* Force MudBlazor components to respect theme */
body[data-theme="light"] .mud-drawer {
    background-color: #ffffff !important;
}

body[data-theme="dark"] .mud-drawer,
body:not([data-theme]) .mud-drawer {
    background-color: #2D2D2D !important;
}

body[data-theme="light"] .mud-appbar {
    background-color: #1976d2 !important;
}

body[data-theme="dark"] .mud-appbar,
body:not([data-theme]) .mud-appbar {
    background-color: #2D2D2D !important;
}

body[data-theme="light"] .mud-main-content {
    background-color: #f5f5f5 !important;
}

body[data-theme="dark"] .mud-main-content,
body:not([data-theme]) .mud-main-content {
    background-color: #1E1E1E !important;
}

/* Utility Classes */
body[data-theme="dark"] .text-muted,
body:not([data-theme]) .text-muted {
    color: #B0B0B0 !important;
}

body[data-theme="light"] .text-muted {
    color: #666666 !important;
}

body[data-theme="dark"] .bg-surface,
body:not([data-theme]) .bg-surface {
    background-color: #2D2D2D !important;
}

body[data-theme="light"] .bg-surface {
    background-color: #ffffff !important;
}

body[data-theme="dark"] .border-subtle,
body:not([data-theme]) .border-subtle {
    border-color: #FFFFFF1A !important;
}

body[data-theme="light"] .border-subtle {
    border-color: #0000001A !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Component Specific Styles */
body[data-theme="dark"] .viewer-container .mud-toolbar,
body:not([data-theme]) .viewer-container .mud-toolbar {
    background-color: #2D2D2D;
    border-bottom: 1px solid #FFFFFF1A;
}

body[data-theme="light"] .viewer-container .mud-toolbar {
    background-color: #ffffff;
    border-bottom: 1px solid #0000001A;
}

/* BIM Viewer Toolbar - Compact and Scrollable */
.viewer-toolbar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(126, 179, 86, 0.5) transparent;
    padding: 4px 8px !important;
    min-height: 48px !important;
    gap: 4px !important;
}

.viewer-toolbar::-webkit-scrollbar {
    height: 4px;
}

.viewer-toolbar::-webkit-scrollbar-track {
    background: transparent;
}

.viewer-toolbar::-webkit-scrollbar-thumb {
    background-color: rgba(126, 179, 86, 0.5);
    border-radius: 2px;
}

.viewer-toolbar .tool-group {
    flex-shrink: 0 !important;
}

.viewer-toolbar .tool-group .mud-button {
    min-width: 36px !important;
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
}

.viewer-toolbar .tool-group .mud-button .mud-icon-root {
    font-size: 1.1rem !important;
}

.viewer-toolbar .mud-divider-vertical {
    margin: 0 4px !important;
    height: 28px !important;
    align-self: center !important;
}

.viewer-toolbar .mud-chip {
    height: 24px !important;
    font-size: 0.7rem !important;
}

.viewer-toolbar .mud-chip .mud-icon-root {
    font-size: 0.85rem !important;
}

/* Compact icon-only buttons for toolbar */
.viewer-toolbar .icon-btn {
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 4px !important;
}

.viewer-toolbar .icon-btn .mud-button-label {
    display: none !important;
}

/* Tool group labels */
.tool-group-label {
    font-size: 0.65rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    opacity: 0.7 !important;
    margin-right: 4px !important;
    white-space: nowrap !important;
}

/* ===== Professional BIM Viewer Workspace ===== */

/* Viewer container styling */
.viewer-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #1a1a1a;
    overflow: hidden;
}

/* 3D Viewer area */
.viewer-content {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
}

#viewer-3d {
    flex: 1;
    position: relative;
    background: linear-gradient(180deg, #1e2a1e 0%, #0d1510 50%, #0a0f0a 100%);
}

#viewer-3d canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Model panel sidebar */
.model-panel {
    width: 280px;
    background: rgba(30, 30, 30, 0.95);
    border-right: 1px solid rgba(126, 179, 86, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, width 0.3s ease;
    overflow: hidden;
}

.model-panel:not(.open) {
    width: 0;
    transform: translateX(-100%);
}

.model-panel.open {
    transform: translateX(0);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(126, 179, 86, 0.15) 0%, rgba(90, 138, 62, 0.1) 100%);
    border-bottom: 1px solid rgba(126, 179, 86, 0.2);
}

.panel-title {
    display: flex;
    align-items: center;
    color: #7eb356 !important;
    font-weight: 600 !important;
}

.panel-section {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
    display: flex;
    align-items: center;
    color: #7eb356 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* Upload zone styling */
.upload-zone {
    border: 2px dashed rgba(126, 179, 86, 0.4);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(126, 179, 86, 0.05);
}

.upload-zone:hover {
    border-color: #7eb356;
    background: rgba(126, 179, 86, 0.12);
    transform: scale(1.02);
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

/* Properties panel */
.properties-panel {
    width: 320px;
    background: rgba(30, 30, 30, 0.95);
    border-left: 1px solid rgba(126, 179, 86, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, width 0.3s ease;
    overflow: hidden;
}

.properties-panel:not(.open) {
    width: 0;
    transform: translateX(100%);
}

.properties-panel.open {
    transform: translateX(0);
}

/* Status bar at bottom */
.viewer-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 12px;
    background: rgba(20, 20, 20, 0.95);
    border-top: 1px solid rgba(126, 179, 86, 0.2);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-item .mud-icon-root {
    font-size: 0.9rem;
}

/* Grid background effect for 3D viewer */
.viewer-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(126, 179, 86, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 179, 86, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

/* Demo model list items */
.demo-model-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 4px 0;
}

.demo-model-item:hover {
    background: rgba(126, 179, 86, 0.15);
}

.demo-model-item .mud-icon-root {
    margin-right: 12px;
    color: #7eb356;
}

/* Quick view buttons */
.quick-view-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    background: rgba(126, 179, 86, 0.1) !important;
    border: 1px solid rgba(126, 179, 86, 0.3) !important;
    transition: all 0.2s ease !important;
}

.quick-view-btn:hover {
    background: rgba(126, 179, 86, 0.25) !important;
    border-color: #7eb356 !important;
    transform: translateY(-2px);
}

/* Filter checkboxes */
.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-item:last-child {
    border-bottom: none;
}

.filter-count {
    background: rgba(126, 179, 86, 0.2);
    color: #7eb356;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Floating action button */
.viewer-fab {
    position: absolute !important;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background: linear-gradient(135deg, #7eb356 0%, #5a8a3e 100%) !important;
    box-shadow: 0 4px 20px rgba(126, 179, 86, 0.4) !important;
}

.viewer-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(126, 179, 86, 0.6) !important;
}

/* Main content background */
body[data-theme="dark"] .main-content-bg,
body:not([data-theme]) .main-content-bg {
    background-color: #1E1E1E !important;
}

body[data-theme="light"] .main-content-bg {
    background-color: #f5f5f5 !important;
}

/* Navigation menu styles */
body[data-theme="light"] .mud-navmenu {
    color: rgba(0, 0, 0, 0.87) !important;
}

body[data-theme="light"] .mud-navmenu .mud-nav-link {
    color: rgba(0, 0, 0, 0.87) !important;
}

body[data-theme="light"] .mud-navmenu .mud-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
}

body[data-theme="light"] .mud-navmenu .mud-nav-link-active {
    background-color: rgba(25, 118, 210, 0.08) !important;
    color: #1976d2 !important;
}

body[data-theme="dark"] .mud-navmenu,
body:not([data-theme]) .mud-navmenu {
    color: #f5f5f5 !important;
}

body[data-theme="dark"] .mud-navmenu .mud-nav-link,
body:not([data-theme]) .mud-navmenu .mud-nav-link {
    color: #f5f5f5 !important;
}

body[data-theme="dark"] .mud-navmenu .mud-nav-link:hover,
body:not([data-theme]) .mud-navmenu .mud-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
}

body[data-theme="dark"] .mud-navmenu .mud-nav-link-active,
body:not([data-theme]) .mud-navmenu .mud-nav-link-active {
    background-color: rgba(144, 202, 249, 0.15) !important;
    color: #90caf9 !important;
}

/* MudBlazor Cards and Tables Light Mode */
body[data-theme="light"] .mud-paper {
    background-color: #ffffff !important;
    color: rgba(0, 0, 0, 0.87) !important;
}

body[data-theme="light"] .mud-table {
    background-color: #ffffff !important;
}

body[data-theme="light"] .mud-table-cell {
    color: rgba(0, 0, 0, 0.87) !important;
    border-bottom-color: rgba(0, 0, 0, 0.12) !important;
}

body[data-theme="light"] .mud-table-head .mud-table-cell {
    color: rgba(0, 0, 0, 0.87) !important;
    background-color: #f5f5f5 !important;
}

body[data-theme="light"] .mud-table-hover:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
}

/* MudBlazor Cards and Tables Dark Mode */
body[data-theme="dark"] .mud-paper,
body:not([data-theme]) .mud-paper {
    background-color: #2d2d2d !important;
    color: #f5f5f5 !important;
}

body[data-theme="dark"] .mud-table,
body:not([data-theme]) .mud-table {
    background-color: #2d2d2d !important;
}

body[data-theme="dark"] .mud-table-cell,
body:not([data-theme]) .mud-table-cell {
    color: #f5f5f5 !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

body[data-theme="dark"] .mud-table-head .mud-table-cell,
body:not([data-theme]) .mud-table-head .mud-table-cell {
    color: #f5f5f5 !important;
    background-color: #1e1e1e !important;
}

body[data-theme="dark"] .mud-table-hover:hover,
body:not([data-theme]) .mud-table-hover:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.viewer-placeholder {
    user-select: none;
    pointer-events: none;
}

/* File Upload Styles */
.upload-zone:hover {
    border-color: #5094FF;
    background-color: rgba(62, 130, 247, 0.1);
}

.upload-zone.drag-over {
    border-color: #5094FF;
    background-color: rgba(62, 130, 247, 0.15);
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* ========================================
   Footer Styles - LomInnov (MudBlazor intégré)
   ======================================== */

/* Boutons sociaux du footer */
.footer-social-btn {
    transition: all 0.2s ease !important;
}

.footer-social-btn:hover {
    opacity: 1 !important;
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Links du footer avec transition */
.mud-link[style*="opacity: 0.8"]:hover {
    opacity: 1 !important;
}

/* Amélioration responsive du footer */
@media (max-width: 600px) {
    .mud-paper .mud-grid {
        text-align: center;
    }
    
    .mud-paper .mud-stack[style*="row"] {
        justify-content: center;
    }
}

/* ========================================
   Sidebar User Panel Styles
   ======================================== */

.sidebar-user-section {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.sidebar-user-panel {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
}

/* Dark mode adjustments */
.mud-theme-dark .sidebar-user-section {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.mud-theme-dark .sidebar-user-panel {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
}

/* ========================================
   Modern UI Enhancements
   ======================================== */

/* Smooth transitions for all interactive elements */
.mud-button,
.mud-icon-button,
.mud-card,
.mud-paper,
.mud-chip,
.mud-nav-link {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Modern card hover effects - harmonisé avec LomInvests */
.mud-card {
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.mud-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

body[data-theme="dark"] .mud-card {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

body[data-theme="dark"] .mud-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Modern button styles - harmonisé avec LomInvests */
.mud-button-filled {
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    padding: 10px 24px !important;
    text-transform: none !important;
    box-shadow: 0 4px 14px rgba(126, 179, 86, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mud-button-filled:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(126, 179, 86, 0.35) !important;
}

.mud-button-filled.mud-button-filled-primary {
    background: linear-gradient(135deg, #7eb356 0%, #5a8a3e 100%) !important;
}

.mud-button-filled.mud-button-filled-secondary {
    background: linear-gradient(135deg, #6a9d4a 0%, #4a7a38 100%) !important;
}

.mud-button-outlined {
    border-radius: 12px !important;
    border-width: 2px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mud-button-outlined:hover {
    transform: translateY(-2px) !important;
    background: rgba(126, 179, 86, 0.08) !important;
}

.mud-button-text {
    text-transform: none !important;
    font-weight: 500 !important;
}

/* Modern input styles */
.mud-input-control .mud-input-slot {
    border-radius: 10px !important;
}

/* AppBar modern style */
.mud-appbar {
    border-radius: 0 0 16px 16px !important;
}

/* Drawer modern style */
.mud-drawer {
    border-right: none !important;
    box-shadow: 4px 0 20px rgba(0,0,0,0.08) !important;
}

/* Navigation link active state */
.mud-nav-link.active {
    background: linear-gradient(135deg, rgba(126,179,86,0.15) 0%, rgba(90,138,62,0.1) 100%) !important;
    border-left: 3px solid #7eb356 !important;
}

/* Modern table styles */
.mud-table {
    border-radius: 12px !important;
    overflow: hidden !important;
}

.mud-table-head {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

body[data-theme="dark"] .mud-table-head,
body:not([data-theme]) .mud-table-head {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}

/* Modern dialog styles */
.mud-dialog {
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25) !important;
}

/* Modern chip styles */
.mud-chip {
    border-radius: 20px !important;
    font-weight: 500 !important;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #7eb356 0%, #5a8a3e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass effect */
.glass-effect {
    background: rgba(255,255,255,0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

body[data-theme="dark"] .glass-effect,
body:not([data-theme]) .glass-effect {
    background: rgba(30,41,59,0.8) !important;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7eb356 0%, #5a8a3e 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6a9d4a 0%, #4a7a38 100%);
    background-clip: content-box;
}

/* Pulse animation for buttons */
@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(126,179,86,0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(126,179,86,0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(126,179,86,0); }
}

.pulse-animation {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade in animation */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

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

