/* Custom CSS for Restaurant Reports App */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

:root {
  --primary-color: #f28c28;
  --primary-dark: #e84a3a;
  --primary-light: #f28c28;
  --secondary-color: #1a1a1a;
  --success-color: #f28c28;
  --danger-color: #e84a3a;
  --warning-color: #f28c28;
  --light-bg: #ffffff;
  --border-color: rgba(242, 140, 40, 0.35);
}

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

html, body {
  height: 100%;
  background-color: var(--light-bg);
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 2rem 0;
}

/* Navbar */
.navbar {
  background: white;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.nav-link {
  color: var(--secondary-color) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link.active {
  color: var(--primary-color) !important;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: calc(0.5rem - 2px);
}

/* Cards */
.card {
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-header {
  background: linear-gradient(90deg, rgba(30, 9, 221, 0.04) 0%, rgba(242, 140, 40, 0.12) 100%);
  border-bottom: 1px solid rgba(242, 140, 40, 0.35);
  padding: 1.5rem;
}

.card-title {
  color: #0b1d39;
  font-weight: 600;
  margin: 0;
}

.card-body {
  padding: 1.5rem;
}

/* Buttons */
.btn {
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 74, 58, 0.25);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #475569;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Forms */
.form-control, .form-select {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.15);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Tables */
.table {
  background-color: white;
  border-collapse: collapse;
}

.table thead {
  background-color: rgba(242, 140, 40, 0.08);
  border-bottom: 2px solid var(--border-color);
}

.table th {
  color: #1a1a1a;
  font-weight: 600;
  padding: 1rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
  background-color: rgba(242, 140, 40, 0.06);
}

.table-responsive {
  border-radius: 0.75rem;
  overflow: hidden;
}

/* Badges */
.badge {
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.badge-admin {
  background-color: rgba(242, 140, 40, 0.15);
  color: #1a1a1a;
}

.badge-manager {
  background-color: rgba(232, 74, 58, 0.12);
  color: #1a1a1a;
}

.badge-success {
  background-color: rgba(242, 140, 40, 0.2);
  color: #1a1a1a;
}

.badge-danger {
  background-color: rgba(232, 74, 58, 0.2);
  color: #1a1a1a;
}

/* Alerts */
.alert {
  border-radius: 0.75rem;
  border: 1px solid;
  padding: 1rem 1.25rem;
}

.alert-success {
  background-color: rgba(242, 140, 40, 0.12);
  border-color: rgba(242, 140, 40, 0.45);
  color: #1a1a1a;
}

.alert-danger {
  background-color: rgba(232, 74, 58, 0.12);
  border-color: rgba(232, 74, 58, 0.45);
  color: #1a1a1a;
}

.alert-info {
  background-color: rgba(242, 140, 40, 0.12);
  border-color: rgba(242, 140, 40, 0.45);
  color: #1a1a1a;
}

/* Modal */
.modal-content {
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  background-color: white;
}

.modal-title {
  font-weight: 600;
  color: #1a1a1a;
}

/* Login Page */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #fff;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.login-card .card-body {
  padding: 2.5rem 2rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--secondary-color);
  font-size: 0.95rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(242, 140, 40, 0.95) 0%, rgba(232, 74, 58, 0.95) 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  border-radius: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.95;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Stats Card */
.stats-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  text-align: center;
}

.stats-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0.5rem 0;
}

.stats-label {
  color: var(--secondary-color);
  font-size: 0.95rem;
  font-weight: 500;
}


/* Responsive */
@media (max-width: 768px) {
  main {
    padding: 1rem 0;
  }

  .card {
    margin-bottom: 1.5rem;
  }

  .table {
    font-size: 0.875rem;
  }

  .table th, .table td {
    padding: 0.75rem 0.5rem;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
  }

  .form-group {
    margin-bottom: 1rem;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.bg-light {
  background-color: var(--light-bg) !important;
}

.border-light {
  border-color: var(--border-color) !important;
}

.shadow-sm {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* Footer */
footer {
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: auto;
  color: var(--secondary-color);
  font-size: 0.95rem;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
