/* Base font size */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

/* Media query for larger devices */
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Focus styles for interactive elements */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Ensure full height layout and reset margins/padding */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Remove extra margin from body (was previously set to 60px) */
body {
  margin-bottom: 0;
  background-color: #f5f5f5;
  color: #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hover effect for contact summary */
.contact-summary:hover {
  background-color: #f0f0f0;
  color: #007bff;
  cursor: pointer;
}

/* Center the login form and give it a card-like look */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style the title in the login form */
.login-container h2 {
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
}

/* Spacing between form fields */
.login-container .form-group {
  margin-bottom: 20px;
}

/* Label styling for form groups */
.login-container label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 500;
}

/* Input styling */
.login-container .form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.login-container .form-control:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Button styling */
.login-container .btn-primary {
  width: 100%;
  padding: 12px;
  background-color: #3498db;
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-container .btn-primary:hover {
  background-color: #2980b9;
}

/* Error message styling */
.login-container .alert {
  margin-top: 20px;
  padding: 12px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #721c24;
  text-align: center;
}

/* Sticky footer styles using Flexbox */
/* Wrapper to hold the page content and footer */
.page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Main content area should take up available space */
.container.body-content {
  flex: 1;
  background: #f5f5f5;
}

/* Footer styling */
footer {
  background-color: #ffffff;
  text-align: center;
  padding: 15px;
}

.fixedCol {
  max-width: 150px;  /* Adjust as needed */
  min-width: 150px;  /* Adjust as needed */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Home page styles */
.home-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-container h1 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 600;
}

.home-container p {
  color: #666;
  font-size: 18px;
  line-height: 1.6;
}

.home-container a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.home-container a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.icon-btn {
  width: 3rem !important;       /* same as sidebar */
  height: 3rem !important;      /* same as sidebar */
  padding: 0 !important;        /* remove Bootstrap’s default padding */
  display: flex !important;     /* enable flex centering */
  justify-content: center !important;
  align-items: center !important;
}

.sidebar-content .icon-btn {
  width: 3rem;       /* e.g. 48px */
  height: 3rem;      /* same as width to keep it square */
  padding-left: 0;        /* remove the default btn padding */
  display: flex;     /* ensure flex centering still works */
  justify-content: center;
  align-items: center;
}
/* container for details‑view icon buttons */
.details-buttons {
  display: flex;            /* row layout */
  flex-wrap: wrap;          /* wrap if viewport is narrow */
  gap: 0.5rem;              /* spacing between buttons */
  align-items: center;      /* vertical align */
  margin-top: 1rem;         /* optional spacing from content above */
}

/* force details-buttons .icon-btn to be a true flex square */
.details-buttons .icon-btn {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;       /* strip out any leftover btn padding */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .login-container,
  .home-container {
    margin: 20px;
    padding: 20px;
  }
}

/* Loading spinner styles */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure the loading overlay is visible when active */
.loading-overlay.active {
    display: flex;
}

/* Admin Sidebar Styles */
.admin-sidebar {
    background-color: #add6ff;
    border-right: 1px solid #dee2e6;
    padding: 20px 0;
    min-height: calc(100vh);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    margin-left: -15px; /* Negative margin to counteract Bootstrap's container padding */
    padding-left: 20px; /* Add 20px padding on the left */
}

.sidebar-header {
    padding-left: 20px;
    padding-bottom: 15px;
    border-bottom: 0px solid #dee2e6;
    margin-bottom: 15px;
    display: flex;
}

.sidebar-header h4 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.sidebar-header .hgi-croissant {
  font-size: 2.5rem;           /* adjust as needed (e.g. 2rem, 3rem) */
  line-height: 1;              /* prevent extra vertical spacing */
}

.sidebar-content {
    padding: 0 15px;
}

.sidebar-content .btn {
    margin-bottom: 10px;
    text-align: center;
    padding: 15px 15px;
    margin-right: 0px;
}

/* cap description so it wraps instead of growing the table */
.description-col {
  max-width: 250px;          /* whatever fits your design */
  white-space: normal;       /* allow wrapping */
  word-wrap: break-word;     /* break long words/URLs */
  overflow: hidden;          /* hide any overflow */
}

/* make the status <span> a flex container so its contents (spinner or icon) are centered */
span.ms-2.small {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  /* give it a consistent size if you like: */
  width: 2rem;
  height: 2rem;
}

/* center the spinner itself inside that flex parent */
.loading-spinner {
  display: inline-block;
  margin: auto;
}

/* ensure any <i class="hgi …"> icons also center their glyph */
.hgi {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.forgot-password-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.forgot-password-container h2 {
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
}

.forgot-password-container .form-group {
  margin-bottom: 20px;
}

.forgot-password-container label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 500;
}

.forgot-password-container .form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.forgot-password-container .form-check-input:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.forgot-password-container .btn-primary {
  width: 100%;
  padding: 12px;
  background-color: #3498db;
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.forgot-password-container .btn-primary:hover {
  background-color: #2980b9;
}

.forgot-password-container .alert {
  margin-top: 20px;
  padding: 12px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #721c24;
  text-align: center;
}

.zoom-lessons .free-row{
  background-color: #e6ffe6; /* Light green */
}

.zoom-lessons .busy-row{
  background-color: #ff7f7f; /* Light green */
}

/* Transaction History Section - Self-contained styles */
.student-balance-transactions-container {
    margin: 30px auto;
    max-width: 800px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.student-balance-transactions-container h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.student-balance-transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.student-balance-transactions-table thead th {
    background-color: #343a40;
    color: white;
    padding: 12px;
    text-align: left;
    position: sticky;
    top: 0;
}

.student-balance-transactions-table tbody {
    display: block;
    max-height: 600px;
    overflow-y: auto;
}

.student-balance-transactions-table thead,
.student-balance-transactions-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.student-balance-transactions-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.student-balance-transactions-table tbody tr:last-child td {
    border-bottom: none;
}

.student-balance-transactions-table tbody tr:hover {
    background-color: #f8f9fa;
}

.transaction-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.transaction-history {
    flex: 1;
    max-width: 100%;
}

.transaction-details {
    flex: 1;
    max-width: 50%;
}

.transaction-details-table th,
.transaction-details-table td {
    padding: 8px 10px;
    border: 1px solid #dee2e6;
}

.impersonating-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #c62828; /* pick any solid color, e.g. red */
    color: #fff;              /* white text for contrast */
    text-align: center;       /* center the text horizontally */
    padding: 10px 0;          /* vertical padding for better height */
    font-weight: bold;
    z-index: 9999;            /* keep it on top of other content */
}



/* make the date picker indicator cover the entire input */
#selectedDate {
  position: relative;       /* ensure indicator can be absolutely positioned */
}
#selectedDate::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;               /* hide the native icon graphic */
  cursor: pointer;          /* indicate it’s clickable */
}

/* Firefox uses a different pseudo, if you need it there too: */
#selectedDate::-moz-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Responsive adjustments for the sidebar */
@media (max-width: 768px) {
    .admin-sidebar {
        min-height: auto;
        margin-bottom: 0px;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        margin-left: 0; /* Reset margin on mobile */
        padding-left: 15px; /* Reset padding on mobile */
    }
}