/* -------------------- General Layout -------------------- */
.dashboard-container {
  display: flex;
  height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  background: #eef1f8;
}

/* -------------------- Sidebar -------------------- */
.sidebar {
  background: linear-gradient(180deg, #2b2e83, #23256a);
  color: white;
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers everything inside the sidebar */
  padding: 25px 20px;
}

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

  /* 🔥 THE ONLY FIX YOU ASKED FOR → FORCE CENTERING */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.sidebar-logo h2 {
  font-size: 1.2rem;
  margin-bottom: 35px;

  /* also ensures TEXT is centered under the logo */
  text-align: center;
}

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

.sidebar-nav a {
  color: white;
  text-decoration: none;
  padding: 12px 15px;
  margin: 6px 0;
  border-radius: 8px;
  transition: 0.3s;
}

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

/* -------------------- Main Content -------------------- */
.dashboard-main {
  flex: 1;
  padding: 40px;
  overflow-y: auto;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.dashboard-main header h1 {
  color: #2b2e83;
  font-size: 1.7rem;
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
}

/* -------------------- Ticket Details Card -------------------- */
.ticket-details {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);

  /* Larger card */
  max-width: 780px;
  width: 100%;
}

/* Back Button */
.back-btn {
  display: inline-block;
  margin-bottom: 25px;
  padding: 10px 18px;
  background-color: #2b2e83;
  color: white;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
}

.back-btn:hover {
  background-color: #4043a8;
}

/* Ticket Info Section */
.ticket-info h2 {
  color: #2b2e83;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.ticket-info p {
  margin-bottom: 12px;
  font-size: 1rem;
}

.status.pending {
  background-color: #f1c40f;  /* Yellow */
  color: #7d6608;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Priority + Status Badges */
.priority.high { background: #e74c3c; color: white; padding: 4px 10px; border-radius: 6px; }
.priority.medium { background: #f39c12; color: white; padding: 4px 10px; border-radius: 6px; }
.priority.low { background: #27ae60; color: white; padding: 4px 10px; border-radius: 6px; }

..status.open { background: #1abc9c; color: white; padding: 4px 10px; border-radius: 6px; }
.status.resolved { background: #2ecc71; color: white; padding: 4px 10px; border-radius: 6px; }
.status.progress { background: #3498db; color: white; padding: 4px 10px; border-radius: 6px; }
.status.pending{background:#ffd100;color: white; padding: 4px 10px; border-radius: 6px;}
.status.closed { background: #7f8c8d; color: white; padding: 4px 10px; border-radius: 6px; }

