/* admin.css - Complete styles for Marshal Core Admin */

/* Base styles */
body {
  font-family: "Open Sans", sans-serif;
  background-color: #fffcf4;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
}

.layout_padding {
  padding: 75px 0;
}

.footer_section {
  background-color: #254a93;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
}

.footer_section p {
  margin: 5px 0;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.section-container {
  display: none;
}

.active-section {
  display: block;
}

.error-message {
  color: #d32f2f;
  margin-top: 5px;
  font-size: 14px;
}

.success-message {
  color: #388e3c;
  margin-top: 5px;
  font-size: 14px;
}

.page-loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #1f233e;
}

/* Header styles - FIXED POSITIONING */
/* Header styles - FIXED POSITIONING */
.header-container {
  background-color: #1f233e;
  color: #fff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 120px;
  position: relative;
}

.header-logo {
  flex: 0 0 auto;
}

.header-logo img {
  height: 110px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.4) contrast(1.2);
  display: block;
}

.header-rc {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  text-align: right;
}

.header-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  flex: 1;
  margin: 0 20px;
  /* Ensure it stays centered */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  white-space: nowrap;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 15px 20px;
    text-align: center;
    min-height: auto;
  }
  
  .header-logo {
    margin-bottom: 10px;
    order: 1;
  }
  
  .header-rc {
    margin-bottom: 10px;
    order: 3;
    text-align: center;
  }
  
  .header-title {
    position: static;
    transform: none;
    order: 2;
    margin: 10px 0;
    font-size: 1.5rem;
    white-space: normal;
  }
  
  .header-logo img {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .header-title {
    font-size: 1.3rem;
  }
  
  .header-logo img {
    height: 60px;
  }
  
  .header-rc {
    font-size: 14px;
  }
}

/* Auth form styles */
.auth-form-container {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 500px;
  margin: 0 auto;
}

.auth-form-container h2 {
  text-align: center;
  color: #254a93;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.auth-form-container input {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.auth-form-container input:focus {
  border-color: #254a93;
  outline: none;
}

.auth-form-container button {
  background-color: #254a93;
  color: #fff;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  border-radius: 4px;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.auth-form-container button:hover {
  background-color: #1d3a7a;
}

.auth-nav {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.auth-nav a {
  color: #254a93;
  text-decoration: none;
  font-weight: bold;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.auth-nav a:hover {
  text-decoration: underline;
  color: #1d3a7a;
}

/* ... rest of your existing admin.css styles ... */

/* Dashboard styles */
.dashboard-container {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.dashboard-header h2 {
  color: #254a93;
  margin: 0;
  font-size: 1.8rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card h3 {
  color: #254a93;
  margin-top: 0;
  font-size: 1.1rem;
}

.stat-card p {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0 0;
  color: #1f233e;
}

.admin-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn:hover {
  color: #254a93;
}

.tab-btn.active {
  color: #254a93;
  border-bottom: 2px solid #254a93;
  font-weight: bold;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-container {
  display: flex;
  margin-bottom: 20px;
}

.search-container input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.search-container input:focus {
  outline: none;
  border-color: #254a93;
}

.search-container button {
  padding: 10px 15px;
  background-color: #254a93;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-container button:hover {
  background-color: #1d3a7a;
}

.table-container {
  overflow-x: auto;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f5f5f5;
  font-weight: bold;
  color: #254a93;
  position: sticky;
  top: 0;
}

tr:hover {
  background-color: #f9f9f9;
}

.action-btn {
  padding: 5px 10px;
  margin-right: 5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.action-btn:last-child {
  margin-right: 0;
}

.edit-btn {
  background-color: #4CAF50;
  color: white;
}

.edit-btn:hover {
  background-color: #3e8e41;
}

.delete-btn {
  background-color: #f44336;
  color: white;
}

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

.reset-btn {
  background-color: #2196F3;
  color: white;
}

.reset-btn:hover {
  background-color: #0b7dda;
}

.verify-btn {
  background-color: #FFC107;
  color: black;
}

.verify-btn:hover {
  background-color: #e0a800;
}

.mark-paid-btn {
  background-color: #2196F3;
  color: white;
}

.mark-paid-btn:hover {
  background-color: #0b7dda;
}

.mark-paid-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.logout-btn {
  background-color: #d32f2f;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.logout-btn:hover {
  background-color: #b71c1c;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  overflow: auto;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 25px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #333;
}

.modal h2 {
  color: #254a93;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #254a93;
  outline: none;
}

.modal button[type="submit"] {
  background-color: #254a93;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  transition: background-color 0.3s ease;
}

.modal button[type="submit"]:hover {
  background-color: #1d3a7a;
}

/* Editable fields */
.editable-field {
  cursor: pointer;
  padding: 5px;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.editable-field:hover {
  background-color: #f0f0f0;
}

.edit-input {
  padding: 5px;
  width: 80%;
  margin-right: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.save-edit-btn {
  padding: 5px 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.save-edit-btn:hover {
  background-color: #3e8e41;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 15px 20px;
    text-align: center;
  }
  
  .header-logo {
    position: static;
    margin-bottom: 10px;
  }
  
  .header-rc {
    position: static;
    margin-bottom: 10px;
  }
  
  .header-title {
    padding-top: 0;
    padding-bottom: 0;
    font-size: 1.5rem;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .admin-tabs {
    overflow-x: auto;
    white-space: nowrap;
    display: block;
  }
  
  .tab-btn {
    display: inline-block;
  }
  
  .modal-content {
    width: 90%;
    margin: 20% auto;
  }
}

@media (max-width: 480px) {
  .auth-form-container {
    padding: 20px;
  }
  
  .search-container {
    flex-direction: column;
  }
  
  .search-container input {
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
  .search-container button {
    border-radius: 4px;
    width: 100%;
  }
  
  th, td {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  .action-btn {
    padding: 3px 6px;
    font-size: 12px;
    margin-bottom: 3px;
  }
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 5px;
  color: white;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background-color: #28a745;
}

.toast.error {
  background-color: #dc3545;
}

/* No data message */
.no-data {
  text-align: center;
  padding: 20px;
  color: #6c757d;
  font-style: italic;
}

/* Edit input styling */
.editable-field {
  cursor: pointer;
  display: inline-block;
  min-width: 100px;
}

.edit-input {
  padding: 5px;
  margin-right: 5px;
  width: 150px;
}

.save-edit-btn, .cancel-edit-btn {
  padding: 5px 10px;
  margin-right: 5px;
  cursor: pointer;
  border: none;
  border-radius: 3px;
}

.save-edit-btn {
  background-color: #4CAF50;
  color: white;
}

.cancel-edit-btn {
  background-color: #f44336;
  color: white;
}

/* Form styling */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-actions {
  margin-top: 20px;
}

/* Navigation links */
.auth-link {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #007bff;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Form styling */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}

/* Error message styling */
.error-message {
  color: #dc3545;
  font-size: 0.9em;
  margin-top: 5px;
}

/* Success message styling */
.success-message {
  color: #28a745;
  font-size: 0.9em;
  margin-top: 5px;
}
/* OTP Section */
#otpSection {
  display: none; /* hidden by default */
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

#otpSection.active-section {
  display: block;
}

#otpSection h2 {
  margin-bottom: 15px;
  font-size: 1.4em;
}

#otpForm input[type="text"] {
  letter-spacing: 10px;
  font-size: 20px;
  text-align: center;
  padding: 10px;
  margin: 15px 0;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#otpForm button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #007bff;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#otpForm button:hover {
  background: #0056b3;
}

/* Error/success messages */
#otpError {
  color: red;
  margin-top: 10px;
  display: none;
}

#otpSuccess {
  color: green;
  margin-top: 10px;
  display: none;
}
