/* assets/css/style.css - Custom Modern Design System for SIM-ASLAB */

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

:root {
  --font-family: 'Poppins', sans-serif;
  
  /* Light Theme Color Palette */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary-color: #64748b;
  --accent-color: #06b6d4;
  
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;
  
  --sidebar-width: 260px;
  --sidebar-bg: #1e293b;
  --sidebar-color: #94a3b8;
  --sidebar-active-bg: #2563eb;
  --sidebar-active-color: #ffffff;
  
  --box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --box-shadow-hover: 0 12px 25px -5px rgba(37, 99, 235, 0.15);
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;
  --transition-fast: all 0.25s ease-in-out;
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-surface: #1e293b;
  --bg-card: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
  
  --primary-light: #1e3a8a;
  --sidebar-bg: #0f172a;
  --sidebar-color: #94a3b8;
  --box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar Modern Styling */
.navbar-custom {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  padding: 0.75rem 1.5rem;
  transition: var(--transition-fast);
}

.logo-aslab-nav {
  height: 48px;
  width: auto;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  cursor: pointer;
}

.logo-aslab-nav:hover {
  transform: scale(1.12) rotate(2deg);
  filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.4));
}

.brand-title {
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(6, 182, 212, 0.9)), url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?q=80&w=1200&auto=format&fit=crop') center/cover no-repeat;
  color: #ffffff;
  padding: 5rem 1rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-logo-img {
  width: 130px;
  height: auto;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,0.3));
  transition: transform 0.4s ease;
}

.hero-logo-img:hover {
  transform: scale(1.08);
}

/* Card Modern Design */
.card-custom {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--box-shadow);
  transition: var(--transition-fast);
}

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

.stat-card {
  border-left: 4px solid var(--primary-color);
  padding: 1.25rem;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
}

/* Sidebar Navigation */
.wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
  min-height: 100vh;
}

#sidebar {
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-color);
  transition: all 0.3s ease;
  z-index: 999;
}

#sidebar .sidebar-header {
  padding: 1.25rem 1.5rem;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar ul.components {
  padding: 1rem 0;
}

#sidebar ul li a {
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  color: var(--sidebar-color);
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: var(--transition-fast);
}

#sidebar ul li a i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

#sidebar ul li a:hover,
#sidebar ul li.active > a {
  color: var(--sidebar-active-color);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--sidebar-active-bg);
}

#content {
  width: 100%;
  padding: 1.75rem;
  min-height: 100vh;
  transition: all 0.3s;
  background-color: var(--bg-primary);
}

/* Toast Container */
.toast-container-custom {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}

/* Badges & Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* QR Code Card Print Styling */
@media print {
  body * {
    visibility: hidden;
  }
  .printable-area, .printable-area * {
    visibility: visible;
  }
  .printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .no-print {
    display: none !important;
  }
}
