/* MAIN LAYOUT */
.dashboard-container {
  display: flex;
  height: 100vh;
  font-family: Arial, sans-serif;
  background-color: #f7f8fc;
}

/* Sidebar */
.sidebar {
  background-color: #2b2e83;
  color: white;
  width: 230px;
  position: fixed;          /* ⭐ Sidebar stays fixed and full height */
  top: 0;
  left: 0;
  height: 100vh;            /* ⭐ Forces full screen height */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}


.sidebar-logo img {
  width: 55px;
  margin-bottom: 10px;
}

.sidebar-logo h2 {
  font-size: 1.4rem;
  margin-bottom: 25px;
}

.sidebar-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar-nav a {
  padding: 12px;
  text-decoration: none;
  color: white;
  border-radius: 6px;
  transition: 0.2s ease-in-out;
  margin-bottom: 5px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background-color: #4043a8;
}

/* MAIN CONTENT */
.dashboard-main {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.dashboard-main h1 {
  color: #2b2e83;
  margin-bottom: 22px;
  font-size: 1.7rem;
}

/* SECTIONS */
.user-section {
  background: white;
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.08);
}

.user-section h2 {
  color: #2b2e83;
  margin-bottom: 15px;
}

/* TABLES */
.user-table {
  width: 100%;
  border-collapse: collapse;
}

.user-table th {
  background-color: #ececff;
  padding: 12px;
  text-align: left;
  color: #2b2e83;
}

.user-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

/* BUTTONS (FIX OVERLAP) */
.action-buttons {
  display: flex;
  gap: 10px;       /* <-- FIX OVERLAPPING */
  flex-wrap: wrap;
}

.btn {
  padding: 8px 14px;
  border-radius: 6px;
  color: white !important;
  cursor: pointer;
  border: none;
  font-size: 0.85rem;
  text-decoration: none;
}

.btn.profile { background-color: #3498db; }
.btn.profile:hover { background-color: #2c80b4; }

.btn.delete { background-color: #e74c3c; }
.btn.delete:hover { background-color: #c0392b; }

.btn.accept { background-color: #27ae60; }
.btn.accept:hover { background-color: #1e8449; }

/* STATUS BADGE */
.status.pending {
  background-color: #f4d03f;
  color: #7d6608;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.75rem;
}

/* COLLAPSIBLE WEEKLY REPORTS */
.week-block {
  margin-bottom: 15px;
}

.week-toggle {
  width: 100%;
  padding: 14px;
  background-color: #2b2e83;
  color: white;
  border: none;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s ease;
}

.week-toggle:hover {
  background-color: #1f2266;
}

.week-content {
  display: none;
  padding-top: 10px;
}

/* WIDEN DESCRIPTION COLUMN (REQUESTED) */
.week-content .user-table th:nth-child(3),
.week-content .user-table td:nth-child(3) {
  width: 70%;              /* BIGGER DESCRIPTION */
  white-space: normal;
  line-height: 1.5;
  padding-right: 10px;
}

/* MAKE DATE SMALL */
.week-content .user-table th:nth-child(4),
.week-content .user-table td:nth-child(4) {
  width: 10%;
  white-space: nowrap;
  text-align: center;
  font-size: 0.85rem;
  color: #555;
}

/* DESCRIPTION CELL GENERAL STYLE */
.description-cell {
  line-height: 1.5;
  white-space: normal;
}

/* DATE CELL GENERAL STYLE */
.date-cell {
  text-align: center;
  white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
  }

  .user-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .action-buttons {
    flex-direction: column;
    gap: 6px;
  }
}

/* Center ONLY the Description column header */
.week-content .user-table th:nth-child(3) {
    text-align: center;
}

/* Fix ALL content from overlapping the fixed sidebar */
.dashboard-main,
.main-content,
.content-wrapper,
.container {
    margin-left: 235px !important;   /* Match sidebar width */
    width: calc(100% - 230px);       /* Prevent squeezing */
    box-sizing: border-box;
}

