/* assets/css/main.css */

:root {
  --primary-color: #1e40af;
  --secondary-color: #3b82f6;
  --accent-color: #06b6d4;
  --success-color: #059669;
  --warning-color: #d97706;
  --danger-color: #dc2626;
  --dark-color: #1f2937;
  --light-color: #f8fafc;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --info-color: #0ea5e9;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

/* Layout & Grid */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
}

.col-1 {
  width: 8.333%;
}
.col-2 {
  width: 16.666%;
}
.col-3 {
  width: 25%;
}
.col-4 {
  width: 33.333%;
}
.col-6 {
  width: 50%;
}
.col-8 {
  width: 66.666%;
}
.col-9 {
  width: 75%;
}
.col-12 {
  width: 100%;
}

/* Navigation */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-link:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

.nav-link.active {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.card-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
  background: var(--gray-500);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--gray-600);
}

.btn-success {
  background: var(--success-color);
  color: var(--white);
}

.btn-success:hover {
  background: #047857;
}

.btn-warning {
  background: var(--warning-color);
  color: var(--white);
}

.btn-warning:hover {
  background: #b45309;
}

.btn-danger {
  background: var(--danger-color);
  color: var(--white);
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
}

.table-striped tbody tr:nth-child(odd) {
  background: var(--gray-50);
}

/* Alerts */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-primary {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

.alert-success {
  background: #d1fae5;
  border-color: #86efac;
  color: #059669;
}

.alert-warning {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #d97706;
}

.alert-danger {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Stats Cards */
.stat-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card.success {
  border-left-color: var(--success-color);
}

.stat-card.warning {
  border-left-color: var(--warning-color);
}

.stat-card.info {
  border-left-color: var(--accent-color);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}

.stat-label {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin: 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.menu-item {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
}

.menu-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.menu-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.menu-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Utilities */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-left {
  text-align: left;
}

.d-flex {
  display: flex;
}
.d-block {
  display: block;
}
.d-none {
  display: none;
}

.justify-content-between {
  justify-content: space-between;
}
.justify-content-center {
  justify-content: center;
}
.align-items-center {
  align-items: center;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mt-5 {
  margin-top: 3rem;
}

.p-0 {
  padding: 0;
}
.p-1 {
  padding: 0.5rem;
}
.p-2 {
  padding: 1rem;
}
.p-3 {
  padding: 1.5rem;
}
.p-4 {
  padding: 2rem;
}

.py-1 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-3 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-4 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.px-1 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-2 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-3 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.fw-bold {
  font-weight: 700;
}
.fw-semibold {
  font-weight: 600;
}
.fw-normal {
  font-weight: 400;
}

.text-primary {
  color: var(--primary-color);
}
.text-secondary {
  color: var(--secondary-color);
}
.text-success {
  color: var(--success-color);
}
.text-warning {
  color: var(--warning-color);
}
.text-danger {
  color: var(--danger-color);
}
.text-muted {
  color: var(--gray-500);
}
.text-dark {
  color: var(--gray-800);
}

.bg-primary {
  background-color: var(--primary-color);
}
.bg-light {
  background-color: var(--light-color);
}
.bg-white {
  background-color: var(--white);
}

/* Login Button on Home */
.btn-login-home {
  background: white;
  color: var(--primary-color);
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
}

.btn-login-home:hover {
  background: var(--gray-100);
  color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Pagination */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination .page-item {
  margin: 0;
  list-style: none;
}

.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e40af !important;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  border-radius: 6px !important;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 40px;
  height: 40px;
  text-align: center;
  font-weight: 500;
  margin: 0;
}

.pagination .page-item.active .page-link {
  background-color: #1e40af !important;
  color: #ffffff !important;
  border-color: #1e40af !important;
  font-weight: 600;
}

.pagination .page-link:hover:not(.page-item.disabled .page-link):not(.page-item.active .page-link) {
  background-color: #f3f4f6;
  border-color: #1e40af;
  color: #1e40af !important;
}

.pagination .page-item.disabled .page-link,
.pagination .page-item.disabled span.page-link {
  color: #9ca3af !important;
  cursor: not-allowed;
  background-color: #f3f4f6;
  border-color: #d1d5db;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 1rem;
    display: none;
  }

  .navbar-nav.show {
    display: flex;
  }

  .nav-item {
    margin: 0.25rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .col-6,
  .col-4,
  .col-3,
  .col-8,
  .col-9 {
    width: 100%;
    margin-bottom: 1rem;
  }
}
