/* CSS Variables - Premium Interior Design Palette */
:root {
  --primary-color: #A34A12;
  /* Copper / Bronze */
  --secondary-color: #E8DCC4;
  /* Warm Beige */
  --dark-bg: #1A1A1A;
  /* Charcoal / Black */
  --light-bg: #F8F5F0;
  /* Off-white */
  --text-dark: #222222;
  --text-light: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease-in-out;
}

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

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  direction: rtl;
  /* RTL Support */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Dark Mode Utilities (Optional but good for premium feel) */
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: #555;
}

body.dark-mode p {
  color: #ccc;
}

/* Layout - Desktop Responsive */
.container {
  width: 100%;
  padding: 0 20px;
  max-width: 1200px;
  /* Expand for desktop */
  margin: 0 auto;
}

/* Remove the narrow mobile-only restriction wrapper */
.app-wrapper {
  background-color: var(--light-bg);
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.dark-mode .app-wrapper {
  background-color: var(--dark-bg);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
}

body:not(.dark-mode) .header {
  background: rgba(248, 245, 240, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-icon a {
  display: block;
}

.logo-icon img {
  height: 55px;
  border-radius: 4px;
}

.header-title {
  text-align: center;
}

.logo-text {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}

.menu-toggle {
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  /* Hide by default RTL */
  width: 300px;
  /* Fixed width rather than 75% for large screens */
  max-width: 80vw;
  height: 100vh;
  background-color: var(--dark-bg);
  color: var(--text-light);
  z-index: 200;
  padding: 30px 20px;
  transition: var(--transition);
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
  left: 0;
}

.close-btn {
  font-size: 30px;
  color: var(--primary-color);
  cursor: pointer;
  margin-bottom: 30px;
  display: block;
  text-align: right;
}

.sidebar-nav li {
  margin-bottom: 20px;
}

.sidebar-nav a {
  font-size: 1.2rem;
  font-weight: 600;
  display: block;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--dark-bg);
  font-weight: 700;
  border-radius: 30px;
  text-align: center;
  border: 2px solid var(--primary-color);
}

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

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

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

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

.primary-color {
  color: var(--primary-color);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}