.center-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #c00;
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeScale 1s ease-out forwards;
}

@keyframes fadeScale {
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #3f37c9;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --success: #4cc9f0;
    --danger: #f72585;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h3 {
    color: var(--primary);
}

.sidebar-menu {
    padding: 20px 0;
}

/*.menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}*/

.menu-item:hover {
    background-color: #f0f2f5;
    color: var(--primary);
}

.menu-item.active {
    background-color: #e6f0ff;
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.menu-item i {
    margin-right: 10px;
    font-size: 18px;
}

.main-content {
  flex: 1;
  padding: 30px;
  /* remove any implicit max-width you may have added elsewhere */
  max-width: none;
  /* explicitly take all leftover width */
  width: calc(100vw - 250px);
  box-sizing: border-box;
}


.sidebar-logo img {
    max-width: 120px;
    max-height: 60px;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto 1rem;
}


#logout-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;       /* center the text and button inside */
    width: 90%;               /* optional—limit its max width */
    max-width: 400px;
}

/*===========================================   User Dash   ============================*/

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h1 {
    color: var(--dark);
    font-size: 24px;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
    max-width: auto;
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    /*color: #0000FF;*/
    color: #007bff;
}

.card-header h2 {
    font-size: 18px;
    /*color: var(--dark);*/
}

/* Apply a blue color to the H2 and its icon */
/* Apply primary blue to H2 and H3 headings and any Font Awesome icons within them */
h2,
h2 .fas,
h3,
h3 .fas {
color: #fff; /* Adjust to your desired blue */
}

.card-header .fas {
margin-right: 0.5rem;
color: #fff;
}

/* Message Container */
#wlsm-submit-registration-messages {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-family: var(--font-main, sans-serif);
  transition: background-color 0.2s, border-color 0.2s;
}

/* Success */
.wlsm-success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

/* Error */
.wlsm-error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

/* ==== Tablet (iPad) ==== */
@media (max-width: 768px) {
  .sidebar {
    width: 200px;
    padding: 15px 0;
  }

  .main-content {
    width: calc(100vw - 200px);
    padding: 20px;
  }

  .sidebar-header h3 {
    font-size: 1.1rem;
  }

  .menu-item {
    padding: 10px 15px;
  }

  .card {
    padding: 20px;
    margin-bottom: 20px;
  }
}

/* ==== Phone ==== */
@media (max-width: 576px) {
  .admin-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: relative;
    box-shadow: none;
  }

  .sidebar-header,
  .sidebar-menu {
    padding: 10px;
  }

  .main-content {
    width: 100%;
    padding: 15px;
  }

  .menu-item {
    padding: 10px;
    font-size: 0.9rem;
  }

  .card {
    padding: 15px;
    margin-bottom: 15px;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .user-info img {
    width: 32px;
    height: 32px;
  }

  /* Pagination buttons, forms, tables, etc. can also be tweaked here */
}
