/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f9ff;
  color: #333;
  line-height: 1.6;
  padding-bottom: 60px;
}

/* Header */
header {
  background-color: #007acc;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 50px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Main Content Container */
.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Cards for products/services */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background-color: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.card img {
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #007acc;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    display: none;
    background-color: #007acc;
    padding: 1rem;
    width: 100%;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }
}


/* Footer */
footer {
  background-color: #007acc;
  color: white;
  text-align: center;
  padding: 1rem;
  position: fixed;
  width: 100%;
  bottom: 0;
}
.toggle-theme {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
}

/* Dark Mode Styles */
body.dark {
  background-color: #1e1e1e;
  color: #ddd;
}

body.dark header,
body.dark footer {
  background-color: #111;
}

body.dark .card {
  background-color: #2a2a2a;
  color: #eee;
}

body.dark nav a {
  color: #ddd;
}

/* Dashboard Layout Additions */

/* Top Navigation */
.top-nav {
  background-color: #007acc;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.top-nav .lang-toggle a {
  color: white;
  margin-left: 0.75rem;
  font-weight: bold;
  text-decoration: none;
}

.top-nav .lang-toggle a:hover {
  text-decoration: underline;
}

.top-nav .user-info {
  font-size: 0.95rem;
}

.logout-btn {
  margin-left: 1rem;
  color: white;
  text-decoration: underline;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 70px; /* height of header */
  left: 0;
  width: 220px;
  height: calc(100% - 70px);
  background-color: #ffffff;
  border-right: 1px solid #ddd;
  padding: 1rem 1rem;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
  overflow-y: auto;
}

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

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

.sidebar a {
  color: #007acc;
  text-decoration: none;
  font-weight: bold;
}

.sidebar a:hover {
  text-decoration: underline;
}

/* Main Content Area */
.dashboard-content {
  margin-left: 240px;
  padding: 2rem;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.dashboard-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-card h2 {
  color: #007acc;
  margin-bottom: 0.5rem;
}

/* Mobile Responsiveness for Dashboard */

@media (max-width: 768px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #ddd;
    box-shadow: none;
    padding: 1rem;
  }

  .dashboard-content {
    margin-left: 0;
    padding: 1rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .sidebar li {
    margin-bottom: 0;
  }
}

/* Mobile Sidebar Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
    margin-right: 1rem;
  }

  .sidebar {
    display: none;
    width: 100%;
  }

  .sidebar.active {
    display: block;
    background-color: #fff;
    padding: 1rem;
    border-bottom: 1px solid #ccc;
  }
}

