/* Base Styles */
@import url("https://fonts.googleapis.com/css2?family=Rethink+Sans:ital,wght@0,700;1,700&display=swap");
:root {
  --primary-color: #d8b940; /* Gold */
  --secondary-color: #000000; /* Black */
  --accent-color: #333333;
  --text-color: #ffffff;
  --light-text: #f5f5f5;
  --dark-text: #333333;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rethink Sans", sans-serif;
}

body {
  font-family: "Rethink Sans", sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Landing Page */
.landing-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("assets/landing_bg.jpg") no-repeat;
  background-size: cover;
  background-position: center;
}

.landing-container {
  text-align: center;
  padding: 2rem;
  max-width: 600px;
}

.logo-container {
  margin-bottom: 2rem;
}

.logo {
  max-width: 200px;
  height: auto;
}

.landing-container h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.main-header h1 {
  color: var(--primary-color);
  font-size: 35px;
}

.proceed-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.proceed-btn:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Login Page */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.login-logo {
  margin-bottom: 2rem;
}

.login-logo img {
  max-width: 120px;
}

.login-form {
  background-color: var(--accent-color);
  padding: 2.5rem;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.login-form h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--light-text);
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #222;
  color: var(--text-color);
  font-size: 1rem;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background-color: #e6c200;
}

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

.sidebar {
  width: 250px;
  background-color: var(--secondary-color);
  color: var(--text-color);
  border-right: 1px solid #333;
}

.sidebar-header {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid #333;
}

.sidebar-logo {
  max-width: 80px;
  margin: 0 auto 1rem;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
}

.sidebar-nav ul {
  list-style: none;
  padding: 1rem 0;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 12px 1.5rem;
  color: var(--light-text);
  transition: all 0.3s;
}

.sidebar-nav a:hover {
  background-color: #333;
  color: var(--primary-color);
}

.sidebar-nav a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.sidebar-nav .active a {
  background-color: #333;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
}

.menu-dropdown > a {
  justify-content: space-between;
}

.dropdown-content {
  display: none;
  background-color: #111;
  padding-left: 1rem;
}

.menu-dropdown.active .dropdown-content {
  display: block;
}
.sidebar-nav .menu-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #ffd700;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  left: 200px; /* Adjust based on sidebar width */
  top: 0;
}

.dropdown-content li {
  padding: 10px;
}

.dropdown-content li a {
  color: #000;
  padding: 5px 10px;
  display: block;
}

.dropdown-content li a:hover {
  background: #e6c200;
}

/* Ensure sidebar items are positioned relatively for absolute positioning of dropdown */
.sidebar-nav .menu-dropdown {
  position: relative;
}
.main-content {
  flex: 1;
  background-color: #111;
  padding: 1.5rem;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logout-btn {
  padding: 8px 15px;
  background-color: #333;
  border-radius: 5px;
  transition: all 0.3s;
}

.logout-btn:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--accent-color);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.stat-info h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.stat-info p {
  color: var(--light-text);
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Recent Complaints */
.recent-complaints {
  background-color: var(--accent-color);
  border-radius: 10px;
  padding: 1.5rem;
}

.recent-complaints h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.complaints-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.complaint-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #444;
}

.complaint-item:last-child {
  border-bottom: none;
}

.complaint-date {
  color: var(--primary-color);
  font-weight: bold;
}

.complaint-name {
  color: var(--light-text);
}

.complaint-action {
  color: var(--primary-color);
  font-weight: bold;
}

/* Popular Foods */
.popular-foods {
  background-color: var(--accent-color);
  border-radius: 10px;
  padding: 1.5rem;
}

.popular-foods h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.foods-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.food-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #444;
}

.food-item:last-child {
  border-bottom: none;
}

.food-name {
  color: var(--light-text);
}

.food-percentage {
  color: var(--primary-color);
  font-weight: bold;
}

/* Recent Orders */
.recent-orders {
  background-color: var(--accent-color);
  border-radius: 10px;
  padding: 1.5rem;
  overflow-x: auto;
}

.recent-orders h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.3rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #444;
}

th {
  background-color: #222;
  color: var(--primary-color);
}

tr:hover {
  background-color: #333;
}

.status-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.status-badge.pending {
  background-color: var(--warning-color);
  color: var(--dark-text);
}

.status-badge.accepted {
  background-color: var(--success-color);
  color: white;
}

.status-badge.preparing {
  background-color: var(--info-color);
  color: white;
}

.action-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 5px;
  font-size: 0.8rem;
  transition: all 0.3s;
}

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

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

.action-btn:hover {
  opacity: 0.8;
}

footer {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-align: center;
  padding: 1rem;
  position: relative;
  bottom: 0;
  width: 100%;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 70px;
  }

  .sidebar-header h3,
  .sidebar-nav a span {
    display: none;
  }

  .sidebar-nav a {
    justify-content: center;
    padding: 12px 0;
  }

  .sidebar-nav a i {
    margin-right: 0;
    font-size: 1.2rem;
  }

  .stats-section {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .stats-section {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
