:root {
  --brand-primary: #e3342f;
  --brand-primary-dark: #c52c25;
}

/* Reset & Base */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #f4f4f4;
}

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

h1,
h3 {
  margin: 0;
}

/* Navbar */
.navbar {
  background-color: white;
  color: var(--brand-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  height: 60px;
  border-bottom: 2px solid #eee;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 60px;
  width: auto;
}
.logo span {
  font-size: 20px;
  font-weight: bold;
  color: var(--brand-primary); /* ensure logo text uses brand color */
}

/* Profile Icon */
.profile-icon {
  background-color: #666;
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

/* Layout Container */
.container {
  display: flex;
  height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
  width: 260px;
  padding: 20px;
  background-color: #2d2d2d;
  color: white;
  box-sizing: border-box;
  overflow-y: auto;
}

.sidebar h3 {
  margin: 15px 0 10px 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f2f2f2;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 20px 0;
}

.sidebar ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  font-size: 15px;
  color: #eaeaea;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.sidebar ul li i {
  width: 20px;
  text-align: center;
  color: var(--brand-primary); /* updated */
}

.sidebar ul li:hover {
  color: white;
  background: linear-gradient(
    135deg,
    rgba(227, 52, 47, 0.08) 0%,
    rgba(220, 38, 38, 0.08) 100%
  );
  box-shadow: 0 2px 8px rgba(227, 52, 47, 0.1);
}
.sidebar ul li:hover i {
  color: var(--brand-primary-dark);
}

/* Dashboard Content */
.dashboard {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
  background-color: #f9f9f9;
}

.dashboard h1 {
  color: #333;
  margin-bottom: 20px;
}

/* Welcome Card */
.welcome-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 5px solid var(--brand-primary);
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 700px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.circle {
  background-color: var(--brand-primary); /* updated */
  color: white;
  border-radius: 50%;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 16px;
}

.logout-btn {
  background-color: var(--brand-primary); /* updated */
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.logout-btn:hover {
  background-color: var(--brand-primary-dark); /* updated */
}

/* Info Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 20px;
  max-width: 900px;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.card i {
  font-size: 30px;
  color: var(--brand-primary); /* updated */
  margin-bottom: 10px;
}

.card h3 {
  font-size: 16px;
  margin: 10px 0 5px 0;
}
.card p {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 🌐 Language Switcher Buttons */
.lang-switcher button {
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.lang-switcher button:hover {
  background: var(--brand-primary-dark);
  color: white;
  border-color: var(--brand-primary-dark);
}

.lang-switcher button:active {
  transform: scale(0.95);
}

.lang-switcher button.active {
  background: var(--brand-primary-dark);
  color: white;
  border-color: var(--brand-primary-dark);
}
