/* Egypt Theme Premium Styles */
:root {
  --egypt-gold: #d4af37;
  --egypt-gold-light: #f4eeb1;
  --egypt-dark-blue: #0f1b2f;
  --egypt-dark-blue-light: #1a2c45;
  --egypt-sand: #f5f5f0;
  --egypt-border: #e0d0a0;
  --egypt-text-dark: #2c2c2c;
  --egypt-accent: #c5a028;
}

body {
  font-family: 'Cinzel', 'Public Sans', sans-serif !important;
  /* Premium font if available, fallback to Sans */
  background-color: var(--egypt-sand) !important;
}

/* Sidebar Styling */
.bg-menu-theme {
  background-color: var(--egypt-dark-blue) !important;
  background-image: linear-gradient(180deg, var(--egypt-dark-blue) 0%, var(--egypt-dark-blue-light) 100%);
}

.bg-menu-theme .menu-link,
.bg-menu-theme .menu-header-text {
  color: #e0e0e0 !important;
}

.bg-menu-theme .menu-item.active>.menu-link {
  background-color: rgba(212, 175, 55, 0.15) !important;
  color: var(--egypt-gold) !important;
  border-left: 3px solid var(--egypt-gold);
}

.bg-menu-theme .menu-icon {
  color: var(--egypt-gold) !important;
}

.app-brand-text {
  color: var(--egypt-gold) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Navbar */
.bg-navbar-theme {
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  border-bottom: 2px solid var(--egypt-gold);
}

/* Cards */
.card {
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  border-radius: 12px !important;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.card-title {
  color: var(--egypt-dark-blue) !important;
  font-weight: 600;
}

/* Welcome Card Special Styling */
.welcome-card {
  background: linear-gradient(135deg, var(--egypt-dark-blue) 0%, #1a2c45 100%);
  color: white !important;
  border: 1px solid var(--egypt-gold);
}

.welcome-card .card-title {
  color: var(--egypt-gold) !important;
}

.welcome-card p {
  color: #e0e0e0;
}

/* Buttons */
.btn-primary {
  background-color: var(--egypt-gold) !important;
  border-color: var(--egypt-gold) !important;
  color: var(--egypt-dark-blue) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background-color: var(--egypt-accent) !important;
  border-color: var(--egypt-accent) !important;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

.btn-outline-primary {
  color: var(--egypt-dark-blue) !important;
  border-color: var(--egypt-dark-blue) !important;
}

.btn-outline-primary:hover {
  background-color: var(--egypt-dark-blue) !important;
  color: var(--egypt-gold) !important;
}

/* Avatars & Icons */
.avatar-initial {
  background-color: rgba(212, 175, 55, 0.15) !important;
  color: var(--egypt-dark-blue) !important;
}

/* Table Styling */
.table thead th {
  background-color: rgba(212, 175, 55, 0.05);
  color: var(--egypt-dark-blue) !important;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

/* Custom Text Classes */
.text-gold {
  color: var(--egypt-gold) !important;
}

.text-egypt {
  color: var(--egypt-dark-blue) !important;
}

/* Auth Page Specifics */
.authentication-wrapper {
  background-color: var(--egypt-dark-blue);
  background-image: linear-gradient(135deg, var(--egypt-dark-blue) 0%, #1a2c45 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.authentication-inner {
  max-width: 450px;
  width: 100%;
}

.authentication-inner .card {
  background-color: white;
  border: 2px solid var(--egypt-gold) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.authentication-inner .app-brand-text {
  color: var(--egypt-dark-blue) !important;
}

.authentication-inner .form-label {
  color: var(--egypt-dark-blue);
  font-weight: 600;
}

.authentication-inner .form-control:focus {
  border-color: var(--egypt-gold);
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.btn-primary.d-grid {
  background-color: var(--egypt-dark-blue) !important;
  color: var(--egypt-gold) !important;
  border: 1px solid var(--egypt-gold) !important;
}

.btn-primary.d-grid:hover {
  background-color: var(--egypt-gold) !important;
  color: var(--egypt-dark-blue) !important;
}

/* Welcome Page Hero */
.hero-section {
  background: linear-gradient(135deg, var(--egypt-dark-blue) 0%, #e5dddd 100%) !important;
  border-bottom: 5px solid var(--egypt-gold);
  min-height: 100vh;
  /* Adjust height for responsiveness */
  display: flex;
  flex-direction: column;
}

.hero-title {
  color: var(--egypt-gold);
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 3.5rem;
  /* Responsive sizing below */
}

.hero-subtitle {
  color: #e0e0e0;
  font-size: 1.25rem;
}

/* Welcome Page Custom Buttons */
.btn-custom-light {
  background-color: rgba(212, 175, 55, 0.1);
  border: 2px solid var(--egypt-gold);
  color: var(--egypt-gold) !important;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 30px;
  text-decoration: none;
}

.btn-custom-light:hover {
  background-color: var(--egypt-gold);
  color: var(--egypt-dark-blue) !important;
  transform: translateY(-2px);
}

.btn-custom-primary {
  background-color: var(--egypt-gold);
  color: var(--egypt-dark-blue) !important;
  padding: 12px 35px;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.btn-custom-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.5);
  background-color: var(--egypt-accent);
}

/* Feature Cards */
.feature-card {
  background: white;
  border: 1px solid var(--egypt-gold);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2);
  border-color: var(--egypt-dark-blue);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--egypt-gold);
  background: transparent;
  -webkit-text-fill-color: var(--egypt-gold);
}

/* Navbar on Welcome Page */
.navbar-brand {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--egypt-gold) !important;
  text-transform: uppercase;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
}

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

.dashboard-btn {
  background-color: var(--egypt-gold);
  color: var(--egypt-dark-blue) !important;
  padding: 8px 20px;
  border-radius: 20px;
}

.dashboard-btn:hover {
  background-color: white;
  color: var(--egypt-dark-blue) !important;
}

/* =========================================
   RESPONSIVE DESIGN SYSTEM
   ========================================= */

/* Desktop / Large Screens */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Tablet / Medium Screens */
@media (max-width: 991.98px) {

  /* Navbar Customization for Mobile/Tablet */
  .navbar-collapse {
    background: rgba(15, 27, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 0 0 15px 15px;
    border: 1px solid var(--egypt-gold);
    border-top: none;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .navbar-nav {
    margin-top: 10px;
  }

  .nav-item {
    margin-bottom: 15px;
    text-align: center;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 10px 0;
  }

  .btn-custom-light,
  .dashboard-btn {
    display: inline-block;
    width: 100%;
    margin: 5px 0;
  }

  /* Hero Text Adjustment */
  .hero-title {
    font-size: 2.8rem;
  }
}

/* Mobile Devices */
@media (max-width: 767.98px) {

  /* General Layout */
  body {
    overflow-x: hidden;
  }

  /* Typography Scaling */
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 15px;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }

  /* Layout Adjustments */
  .hero-section {
    padding-bottom: 40px;
    min-height: 100vh;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Feature Cards */
  .feature-card {
    margin-bottom: 20px;
    padding: 25px 20px;
  }

  .row>div {
    width: 100%;
  }

  /* Auth Pages */
  .authentication-wrapper {
    padding: 15px;
  }

  .authentication-inner {
    max-width: 100%;
  }

  /* Footer */
  footer {
    padding: 20px 0;
    font-size: 0.9rem;
  }
}