/* d:\Code\PHP\AnalisaApp\assets\style.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #841711;
  --primary-hover: #a31d16;
  --secondary-color: #1c1c1c;
  --accent-color: #fd9e00;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --text-color: #2b2b2b;
  --text-muted: #6c757d;
  --border-radius: 14px;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.08);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--secondary-color);
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eaebec;
  padding-bottom: 0.5rem;
}

/* Sidebar Desktop */
.sidebar {
  width: 260px;
  background-color: var(--secondary-color);
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
  box-shadow: 4px 0 15px rgba(0,0,0,0.05);
}

.sidebar-brand {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  text-decoration: none;
  display: block;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  text-decoration: none;
  margin: 0 15px 8px;
  font-weight: 500;
  transition: var(--transition);
}

.sidebar .nav-link::before {
  content: "•";
  margin-right: 10px;
  color: transparent;
  transition: var(--transition);
}

.sidebar .nav-link:hover {
  background-color: rgba(253, 158, 0, 0.15);
  color: var(--accent-color);
  transform: translateX(5px);
}

.sidebar .nav-link:hover::before {
  color: var(--accent-color);
}

.sidebar .nav-link.active {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 10px rgba(132, 23, 17, 0.3);
}

.sidebar .nav-link.active::before {
  color: #fff;
}

/* Mobile Header */
.mobile-header {
  display: none;
  background-color: var(--card-bg);
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
}

.mobile-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
}

.mobile-brand {
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.2rem;
}

/* Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Content */
.content {
  margin-left: 260px;
  padding: 2.5rem;
  flex-grow: 1;
  transition: margin-left 0.3s ease;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border: 1px solid rgba(0,0,0,0.03);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

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

.card-header {
  background-color: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding: 1.25rem 1.75rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-title {
  font-size: 1.25rem;
  margin: 0;
}

.card-body {
  padding: 1.75rem;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  transition: var(--transition);
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.95rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(132, 23, 17, 0.2);
}

.btn-warning {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.btn-warning:hover {
  background-color: #e58e00;
  border-color: #e58e00;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(253, 158, 0, 0.2);
}

.btn-light {
  background-color: #f1f2f4;
  color: var(--text-color);
  border-color: #e1e4e8;
}

.btn-light:hover {
  background-color: #e1e4e8;
  color: var(--text-color);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}

.table thead th {
  background-color: #f8f9fa;
  color: var(--secondary-color);
  border-bottom: 2px solid #eaebec;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left;
}

.table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f2f4;
  font-size: 0.95rem;
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background-color: rgba(132, 23, 17, 0.02);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label, label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-size: 0.9rem;
}

.form-control, .form-select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e1e4e8;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  background-color: #fcfcfc;
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(132, 23, 17, 0.1);
}

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.alert-error {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .sidebar-overlay.show {
    display: block;
    opacity: 1;
  }
  
  .mobile-header {
    display: flex;
  }
  
  .content {
    margin-left: 0;
    padding: 1.5rem;
  }
  
  .grid-cols-2, .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  body {
    padding-bottom: 70px; /* Space for bottom nav */
  }
}

/* ============================================================
   BOTTOM NAVBAR & BOTTOM SHEET (MOBILE)
   Inspired by Enterprise HRIS
   ============================================================ */
.bottom-navbar {
  background-color: var(--secondary-color) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px 20px 0 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1060;
}

.bottom-navbar .nav-item {
  flex: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  transition: var(--transition);
}

.bottom-navbar .nav-item i {
  font-size: 1.3rem;
  margin-bottom: 3px;
}

.bottom-navbar .nav-item:hover, 
.bottom-navbar .nav-item.active {
  color: var(--accent-color);
}

.bottom-navbar .nav-item.active i {
  color: var(--accent-color);
}

/* Drag / Click Handle */
.drag-handle {
  width: 40px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* Expandable Menu Grid */
.menu-grid-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
  height: 100%;
}

.menu-grid-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.menu-grid-item.active {
  background: rgba(132, 23, 17, 0.2);
  border-color: var(--primary-color);
}

#expandableMenu {
  max-height: 80vh;
  overflow-y: auto;
}

/* Animations removed to prevent conflict with Bootstrap's default collapse transition */


