/* -------------------- 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;
  padding: 25px 20px;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.15);
}

/* ⭐ FIX: Center logo image ABOVE the text */
.sidebar-logo {
  width: 100%;
  display: flex;
  flex-direction: column;   /* puts image on top */
  align-items: center;       /* centers image + text */
  margin-bottom: 20px;
}

.sidebar-logo img {
  width: 60px;
  margin-bottom: 8px;
}

.sidebar-logo h2 {
  font-size: 1.15rem;
  letter-spacing: 1px;
  margin-bottom: 35px;
  font-weight: 600;
  text-align: center; /* ensures clean centering */
}

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

.sidebar-nav a {
  color: white;
  text-decoration: none;
  padding: 12px 18px;
  margin: 6px 0;
  border-radius: 10px;
  transition: 0.25s ease;
  font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(3px);
}

/* 🔥 Hide Create Ticket button */
.sidebar-nav a[href*="create"] {
  display: none !important;
}

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

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

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

/* -------------------- Create Ticket Card -------------------- */
.create-ticket-section {
  background: white;
  padding: 35px;
  border-radius: 16px;
  max-width: 680px;
  margin: auto;
  width: 100%;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  border: 1px solid #e5e6f0;
}

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

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

/* -------------------- Form Elements -------------------- */
.ticket-form {
  display: flex;
  flex-direction: column;
}

.ticket-form label {
  margin-top: 15px;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
}

.ticket-form input,
.ticket-form textarea,
.ticket-form select {
  margin-top: 6px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fafafa;
  font-size: 1rem;
  transition: border 0.2s ease;
}

.ticket-form input:focus,
.ticket-form textarea:focus,
.ticket-form select:focus {
  border-color: #2b2e83;
  outline: none;
}

.ticket-form textarea {
  resize: none;
}

/* Submit Button */
.submit-btn {
  margin-top: 25px;
  background-color: #2b2e83;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: 0.3s;
}

.submit-btn:hover {
  background-color: #4043a8;
  transform: translateY(-2px);
}

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

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

  .sidebar-nav {
    flex-direction: row;
  }

  .sidebar-nav a {
    margin: 0 5px;
    padding: 10px 12px;
  }

  .dashboard-main {
    padding: 20px;
  }

  .create-ticket-section {
    padding: 25px;
  }
}
