/* Base styles */
body {
  display: flex;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  height: 100vh;
}

/* Sidebar styles */
.sidebar {
  width: 240px;
  background-color: #2c3e50;
  padding: 20px;
  color: #ecf0f1;
  height: 100vh;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
  margin-top: 0;
  font-size: 22px;
  color: #ecf0f1;
  text-align: center;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin: 15px 0;
}

.sidebar a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.sidebar a:hover {
  background-color: #1abc9c;
}

/* Email sidebar */
.email-sidebar {
  background: #fff;
  border-right: 1px solid #e5e5e5;
  height: 100vh;
  padding: 10px 1px 0 5px;
}

/* Main content styles */
.main-content {
  flex: 1;
  padding: 30px;
  background-color: #fff;
  overflow-y: auto;
}

#homeContent {
  display: block;
}

h3 {
  font-size: 24px;
  color: #2c3e50;
}

p {
  font-size: 18px;
  color: #7f8c8d;
}

/* Iframe styles */
iframe {
  width: 100%;
  height: 800px; /* unified height */
  border: none;
  display: none; /* default hidden */
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    box-shadow: none;
  }

  .main-content {
    padding: 15px;
  }
}

/* Inbox table */
.inbox-container h2 {
  margin-bottom: 16px;
  color: #333;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 2px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

tr:hover {
  background-color: #f9f9f9;
  cursor: pointer;
}

/* Spinner */
.spinner-container {
  text-align: center;
  padding: 40px;
  font-family: Arial, sans-serif;
  color: #444;
}

.spinner {
  border: 6px solid #eee;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  flex: 1 1 250px;
  text-align: center;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #555;
}

.card .value {
  font-size: 28px;
  color: #007bff;
  font-weight: bold;
}
