/* Local & High-Speed Material Symbols Font */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    font-display: block;
    src: url('../fonts/MaterialSymbolsOutlined.woff2') format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', 'Material Icons', sans-serif !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga' 1;
    -webkit-font-feature-settings: 'liga';
    vertical-align: middle;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* native hardware scroll */
}
.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}
.glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.glass-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37,99,235,0.1), 0 4px 10px rgba(37,99,235,0.05);
}
.card-hover {
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 10px 25px rgba(37,99,235,0.1), 0 4px 10px rgba(37,99,235,0.05);
}
.ai-glow {
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.15);
}
.inner-glow {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.custom-scrollbar::-webkit-scrollbar { width: 4px; height: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}
.pulse-indicator {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.hero-gradient {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #f0f9ff 100%);
}
.glass-landing {
    background: rgba(255,255,255,0.85);
    
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.gauge-container svg { display: block; }
.gauge-container circle { transition: stroke-dashoffset 1s ease; }
section.bg-background { opacity: 1; transform: none; }

/* ===== Zero-Blink Fresh & Solid Rendering ===== */
.reveal, .reveal-left, .reveal-right, .reveal-scale { 
    opacity: 1 !important; 
    transform: none !important; 
    transition: box-shadow 0.2s ease, border-color 0.2s ease; 
}
.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible { 
    opacity: 1 !important; 
    transform: none !important; 
}

/* Full responsiveness & no horizontal overflow */
html {
    overflow-x: hidden;
    /* native hardware scroll */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
}

img, svg, video, canvas {
    max-width: 100%;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

button, a {
    touch-action: manipulation;
}

/* Stagger delays for children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.03s; }
.stagger > *:nth-child(3) { transition-delay: 0.06s; }
.stagger > *:nth-child(4) { transition-delay: 0.09s; }
.stagger > *:nth-child(5) { transition-delay: 0.12s; }
.stagger > *:nth-child(6) { transition-delay: 0.15s; }
.stagger > *:nth-child(7) { transition-delay: 0.18s; }
.stagger > *:nth-child(8) { transition-delay: 0.21s; }
.stagger > *:nth-child(9) { transition-delay: 0.24s; }
.stagger > *:nth-child(10) { transition-delay: 0.27s; }
.stagger > *:nth-child(11) { transition-delay: 0.3s; }
.stagger > *:nth-child(12) { transition-delay: 0.33s; }

/* ===== Counter Animation ===== */
.stat-number { display: inline-block; }

/* ===== Skeleton / Shimmer Loading ===== */
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== Zero-Blink Page Transition ===== */
.page-enter { opacity: 1; transform: none; }
.page-enter-active { opacity: 1; transform: none; }

/* ===== Clean Sidebar Link ===== */
.sidebar-link {
    position: relative;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar-link:not(.bg-primary):hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* ===== Card Lift (Smooth & Beautiful) ===== */
.lift {
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    
}
.lift:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

/* ===== Feature Icon & Tool Card - Clean Smooth Scaling ===== */
.feature-icon,
.tool-icon-box {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.lift:hover .feature-icon,
.tool-card:hover .tool-icon-box {
    transform: scale(1.06);
}

.tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    
}
.tool-card:hover {
    border-color: #3b82f6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.04) !important;
}
.tool-card:hover h3 {
    color: #2563eb !important;
}
.tool-card .tool-arrow {
    transition: transform 0.2s ease;
}
.tool-card:hover .tool-arrow {
    transform: translateX(3px);
}

/* ===== Pulse Dot ===== */
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2563eb; animation: pulse-dot 1.5s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.4); } }

/* ===== Ripple Effect Cleaned (No dirty dark smudge) ===== */
.ripple { position: relative; }
.ripple::after { display: none !important; }

/* ===== Top Loading Bar ===== */
#nprogress { pointer-events: none; position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; height: 3px; }
#nprogress .bar { height: 100%; background: #2563eb; width: 0; transition: width 0.3s cubic-bezier(0.4,0,0.2,1); border-radius: 0 2px 2px 0; box-shadow: 0 0 10px rgba(37,99,235,0.3); }

/* ===== Modal Fade ===== */
.modal-overlay { opacity: 0; transition: opacity 0.25s ease; }
.modal-overlay:not(.hidden) { opacity: 1; }
.modal-content { transform: scale(0.95) translateY(10px); transition: transform 0.25s cubic-bezier(0.16,1,0.3,1); }
.modal-overlay:not(.hidden) .modal-content { transform: scale(1) translateY(0); }

/* ===== Input Focus Glow ===== */
input:focus, textarea:focus, select:focus { transition: box-shadow 0.2s ease, border-color 0.2s ease; }

/* ===== Button Spinner ===== */
.btn-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Smooth Collapse ===== */
.smooth-collapse { overflow: hidden; transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease; max-height: 0; opacity: 0; }
.smooth-collapse.open { max-height: 1000px; opacity: 1; }

/* ===== Result Slide ===== */
.result-enter { opacity: 0; transform: translateY(12px) scale(0.98); }
.result-enter-active { opacity: 1; transform: translateY(0) scale(1); transition: all 0.35s cubic-bezier(0.16,1,0.3,1); }

/* ===== Scale Press ===== */
.press { transition: transform 0.15s cubic-bezier(0.4,0,0.2,1); }
.press:active { transform: scale(0.98); }

/* ===== Upload Progress ===== */
.progress-bar { height: 3px; background: #e2e8f0; border-radius: 2px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: #2563eb; border-radius: 2px; transition: width 0.4s cubic-bezier(0.16,1,0.3,1); width: 0; }

/* ===== Toast Notifications ===== */
.toast {
  pointer-events: auto;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  animation: toastSlideIn 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
  max-width: 360px;
}
.toast.removing { animation: toastSlideOut 0.3s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes toastSlideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastSlideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
.toast-success { background: #059669; }
.toast-error { background: #dc2626; }
.toast-info { background: #2563eb; }

/* ===== Smooth Responsive & Touch Improvements ===== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Touch-friendly touch targets */
@media (max-width: 640px) {
  button, input, select, a.btn {
    min-height: 38px;
  }
}

/* Clean Print Styling for Invoices / Receipts */
@media print {
  body * {
    visibility: hidden;
  }
  #invoiceModal, #invoiceModal * {
    visibility: visible;
  }
  #invoiceModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    padding: 0;
    margin: 0;
  }
  #invoiceModalBox {
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 20px !important;
  }
  button {
    display: none !important;
  }
}


/* ===== Soft Slate Input Borders (Zero Black Borders) ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    outline: none !important;
    box-shadow: none !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

#googleBtn {
    border: 1px solid #cbd5e1 !important;
}
#googleBtn:hover {
    border-color: #94a3b8 !important;
    background-color: #f8fafc !important;
}
