:root {
  /* Color Palette - Modern Coffee Shop */
  --primary: #5D4037; /* Deep Espresso */
  --secondary: #8D6E63; /* Mocha */
  --accent: #D7CCC8; /* Cream/Latte */
  --highlight: #FFA726; /* Warm Orange for CTAs */
  
  --bg-body: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.95);
  
  --text-main: #3E2723;
  --text-muted: #795548;
  --text-white: #FFFFFF;

  --border-radius: 12px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  
  --container-width: 1200px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-top: 0;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--secondary);
  transition: color 0.3s;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary);
  color: var(--text-white);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-white);
}

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

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

.btn-danger {
  background-color: #e53935;
}
.btn-danger:hover {
  background-color: #c62828;
}

/* Navbar */
.navbar {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 1rem;
}

.nav-links a:hover {
  color: var(--secondary);
}

/* Hero Section */
.hero {
  height: 60vh;
  min-height: 400px;
  background: url('images/Font-Shop-Real.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  color: var(--text-white);
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Alerts Section */
.alerts-section {
  width: 100%;
}

.alert-banner {
  width: 100%;
  padding: 2rem 0;
  text-align: center;
}

.alert-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.alert-info { background-color: #E1F5FE; color: #0277BD; }
.alert-warning { background-color: #FFF3E0; color: #EF6C00; }
.alert-success { background-color: #E8F5E9; color: #2E7D32; }
.alert-danger { background-color: #FFEBEE; color: #C62828; }

.alert-title {
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}

.alert-message {
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto;
}

/* Features Grid */
.features {
  padding: 4rem 0;
  background-color: var(--bg-card);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  background: var(--bg-body);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.feature-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-icon-wrapper img {
  width: 60%;
  height: auto;
}

/* Info Section */
.info-section {
  padding: 4rem 0;
  background-color: var(--bg-body);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.info-box {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.info-box h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
}

.info-box p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Menu Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--border-radius);
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.modal-nav {
  background: var(--bg-body);
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-nav:hover {
  background: var(--accent);
}

/* Admin Dashboard Styling */
.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--primary);
  color: var(--text-white);
  padding: 2rem;
}

.admin-sidebar h2 {
  color: var(--text-white);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1rem;
}

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

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

.sidebar-nav a {
  color: rgba(255,255,255,0.8);
  display: block;
  padding: 0.8rem;
  border-radius: 8px;
  transition: background 0.3s;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,0.1);
  color: white;
  text-decoration: none;
}

.admin-main {
  padding: 2rem;
  background: var(--bg-body);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

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

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

.table th {
  text-align: left;
  padding: 1rem;
  background: var(--bg-body);
  color: var(--text-muted);
  font-weight: 600;
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.table tr:last-child td {
  border-bottom: none;
}

/* Login Page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-body) 0%, var(--accent) 100%);
}

.login-card {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; } /* Hide sidebar on mobile for now, or make hamburger */
  .navbar .container { flex-direction: column; gap: 1rem; }
  .nav-links { gap: 1rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .modal-content { flex-direction: column; }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
