/* ----------------------------------------------------
   ModernTrust Custom Premium Stylesheet
   Adapts Tailwind configuration for rich micro-interactions
   ---------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-primary: #0b1c30;
  --color-secondary: #3b6934;
  --color-background: #f4f7f9;
  --color-surface: #ffffff;
  --color-surface-container: #e5eeff;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-background);
  color: #0b1c30;
  overflow-x: hidden;
  scroll-behavior: smooth;
  min-height: 100dvh;
}

/* Hide scrollbars but retain functionality */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Premium Ambient Shadows */
.custom-shadow {
  box-shadow: 0 4px 20px 0 rgba(11, 28, 48, 0.04), 0 1px 3px 0 rgba(11, 28, 48, 0.02);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-shadow-hover:hover {
  box-shadow: 0 12px 30px 0 rgba(11, 28, 48, 0.08), 0 4px 6px 0 rgba(11, 28, 48, 0.03);
  transform: translateY(-2px);
}

/* Elegant Glassmorphism */
.glassmorphism {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark .glassmorphism {
  background: rgba(11, 28, 48, 0.75);
  backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Modal and Drawers Keyframes */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-modal-bg {
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-modal-content {
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Micro-animations and Interactions */
.interactive-scale {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-scale:active {
  transform: scale(0.96);
}

/* Custom Navigation Indicator line animations */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.active-nav::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Shimmer Effect for Loading / Scanning states */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-scan {
  background: linear-gradient(90deg, rgba(59, 105, 52, 0.1) 25%, rgba(59, 105, 52, 0.25) 50%, rgba(59, 105, 52, 0.1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Accent status badges */
.badge-leased {
  background-color: rgba(59, 105, 52, 0.12);
  color: #3f6d38;
}

.badge-vacant {
  background-color: rgba(117, 119, 126, 0.12);
  color: #505f79;
}

.badge-maintenance {
  background-color: rgba(186, 26, 26, 0.12);
  color: #ba1a1a;
}

/* Material Design Icons configuration */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Bento Cards spacing grids */
.bento-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(197, 198, 206, 0.2);
}

.bento-card-dark {
  background-color: #0c1c33;
  color: #ffffff;
}

/* File Cabinet Grid styling */
.file-card {
  border: 1px solid rgba(197, 198, 206, 0.3);
  transition: all 0.2s ease;
}

.file-card:hover {
  border-color: var(--color-primary);
  background-color: rgba(229, 238, 255, 0.3);
}
