/* 
   style.css 
   Based on DESIGN.md (Corporate / Modern)
   Colors: Deep Blues, Slate Grays
   Typography: Inter
*/

:root {
  --surface: #f8f9ff;
  --surface-container: #e5eeff;
  --on-surface: #0b1c30;
  --primary: #00236f;
  --on-primary: #ffffff;
  --secondary: #3755c3;
  --background: #f8f9ff;
  --on-background: #0b1c30;
  --border-color: #e2e8f0;
  --sidebar-width: 260px;
  --header-height: 60px;
}

body.app-body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--on-background);
  margin: 0;
  padding: 0;
  font-size: 14px;
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: #ffffff;
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-menu .nav-link {
  color: var(--on-surface);
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.sidebar-menu .nav-link:hover, .sidebar-menu .nav-link.active {
  background-color: var(--surface-container);
  color: var(--primary);
}

/* Sidebar Backdrop */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 28, 48, 0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.show {
  visibility: visible;
  opacity: 1;
}

/* Main Content Wrapper */
.app-main-content {
  flex-grow: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - var(--sidebar-width));
}

/* Header */
.app-header {
  height: var(--header-height);
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Content Area */
.content-area {
  flex-grow: 1;
  background-color: var(--background);
}

/* Footer */
.app-footer {
  background-color: #ffffff;
  font-size: 12px;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Sleek Hamburger Button */
.hamburger-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn:hover {
  background: var(--surface-container);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
}

.hamburger-btn:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Data Tables */
.table thead th {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  background-color: #f8fafc;
}

/* Elevation & Depth */
.shadow-level-1 {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.shadow-level-2 {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.shadow-level-3 {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Cards */
.card {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.show {
    transform: translateX(0);
  }
  .app-main-content {
    margin-left: 0;
    width: 100%;
  }
}

/* Global Modal Styles */
.modal-footer {
  background-color: #f8fafc;
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  gap: 0.5rem;
}

.modal-footer .btn {
  border-radius: 50rem; /* Pill shape for aesthetic consistency */
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-footer .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.modal-footer .btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.modal-footer .btn i.bi {
  margin-right: 0.375rem;
}
