/* Base Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f7fa;
  color: #2d3748;
}

/* Login Page Styles */
.login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #f5f7fa;
}

.logo-container {
  margin-bottom: 40px;
  text-align: center;
}

.logo-container h1 {
  font-size: 36px;
  color: #2c3e50;
  margin: 0;
  font-weight: 700;
}

.login-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.login-card h2 {
  font-size: 24px;
  color: #2c3e50;
  margin: 0 0 10px 0;
  text-align: center;
  font-weight: 600;
}

.login-card h3 {
  font-size: 18px;
  color: #4a5568;
  margin: 0 0 30px 0;
  text-align: center;
  font-weight: 500;
}

.login-input {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.login-input:focus {
  outline: none;
  border-color: #4299e1;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.login-btn {
  width: 100%;
  padding: 14px;
  background-color: #4299e1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background-color: #3182ce;
}

.login-switch {
  text-align: center;
  margin-top: 25px;
  color: #718096;
  font-size: 14px;
}

.login-switch a {
  color: #4299e1;
  text-decoration: none;
  font-weight: 500;
}

.error-message {
  color: #e53e3e;
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}

/* Admin Dashboard Styles */
.dashboard-header {
  background-color: white;
  padding: 20px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.dashboard-header h1 {
  font-size: 28px;
  color: #2c3e50;
  margin: 0;
  font-weight: 700;
}

.dashboard-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.dashboard-title {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 600;
}

.dashboard-subtitle {
  font-size: 16px;
  color: #718096;
  margin-bottom: 30px;
}

.section-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 30px;
}

.section-card h2 {
  font-size: 20px;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 600;
}

.admin-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.control-btn {
  padding: 10px 20px;
  background-color: #4299e1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.control-btn:hover {
  background-color: #3182ce;
}

.logout-btn {
  background-color: #e53e3e;
}

.logout-btn:hover {
  background-color: #c53030;
}

.admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-list li {
  padding: 15px;
  background-color: #f8fafc;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 16px;
}

.add-admin-container {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.add-admin-input {
  flex: 1;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
}

.add-admin-btn {
  padding: 12px 25px;
  background-color: #48bb78;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-admin-btn:hover {
  background-color: #38a169;
}
/* Add this to your existing CSS */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.logo {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}
/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #2c3e50;
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 40px;
  width: auto;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 24px;
  color: white;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Dashboard Content */
.dashboard-container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.dashboard-title {
  text-align: center;
  margin-bottom: 30px;
}

.dashboard-title h2 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 5px;
}

.subtitle {
  color: #7f8c8d;
  font-size: 16px;
}

/* Form Styles */
.upload-section {
  margin-bottom: 30px;
}

.form-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 30px;
}

.form-card h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4a5568;
}

.file-input-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-input-container input[type="file"] {
  display: none;
}

.file-input-container label {
  padding: 10px 15px;
  background-color: #4299e1;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

#file-name {
  font-size: 14px;
  color: #718096;
}

.input-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.input-group {
  flex: 1;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4a5568;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 14px;
}

.button-container {
  margin-top: 20px;
  text-align: center;
}

.primary-btn {
  padding: 12px 24px;
  background-color: #4299e1;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.primary-btn:hover {
  background-color: #3182ce;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  text-align: left;
  border: 1px solid #e2e8f0;
}

th {
  background-color: #f8fafc;
  font-weight: 600;
}

/* Output Section */
.output-container {
  margin-top: 30px;
}

.output-container h3 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 20px;
}
/* Registration Popup */
.registration-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.popup-content p {
  margin: 0 0 15px;
  font-size: 18px;
  color: #2c3e50;
}

.popup-content p:last-child {
  margin-bottom: 0;
  color: #718096;
  font-size: 16px;
}
/* Add this to your style.css */
.dashboard-header .nav-link.active {
  color: white !important;
  font-weight: 600;
}
/* Admin Dashboard Styles */
.admin-info, .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.user-actions {
  display: flex;
  gap: 10px;
}

.manage-btn {
  padding: 5px 10px;
  background-color: #4299e1;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.manage-btn:hover {
  background-color: #3182ce;
}

.current-user {
  color: #718096;
  font-style: italic;
}

.user-role {
  background-color: #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* Registration Popup */
.registration-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.popup-content p {
  margin: 0 0 15px;
  font-size: 18px;
  color: #2c3e50;
}

.popup-content p:last-child {
  margin-bottom: 0;
  color: #718096;
  font-size: 16px;
}
/* Add to style.css */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #2c3e50;
  color: white;
}

.admin-container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 20px;
}

.admin-title {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 5px;
}

.admin-subtitle {
  color: #718096;
  margin-bottom: 30px;
}

.status-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.status-card h3 {
  margin-top: 0;
  color: #2c3e50;
}

.section-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-card h3 {
  margin-top: 0;
  color: #2c3e50;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.users-list, .admin-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
}

.user-item, .admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 8px;
  background-color: #f8fafc;
  border-radius: 6px;
}

.user-email, .admin-email {
  font-weight: 500;
}

.user-actions {
  display: flex;
  gap: 10px;
}

.manage-btn {
  padding: 5px 15px;
  background-color: #4299e1;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.delete-btn, .remove-btn {
  padding: 5px 15px;
  background-color: #e53e3e;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.add-admin-form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.add-admin-form input {
  flex: 1;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.add-btn {
  padding: 10px 20px;
  background-color: #48bb78;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.refresh-btn {
  padding: 10px 20px;
  background-color: #4299e1;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 15px;
}

.current-user {
  color: #718096;
  font-style: italic;
}

.loading, .empty, .error {
  padding: 15px;
  text-align: center;
  color: #718096;
}

.error {
  color: #e53e3e;
}
/* Timetable Editing Styles */
.timetable-card {
  position: relative;
}

.timetable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.timing-btn {
  background-color: #9f7aea !important; /* Purple */
}

.save-timing-btn {
  background-color: #6b46c1 !important; /* Darker purple */
}

.download-btn {
  background-color: #48bb78 !important; /* Green */
}

th[contenteditable="true"].editing-timing {
  outline: 2px dashed #9f7aea;
  padding: 8px;
  background-color: #faf5ff;
}

td[contenteditable="true"].editing-class {
  outline: 2px dashed #4299e1;
  background-color: #ebf8ff;
}

.save-class-btn {
  background-color: #3182ce !important; /* Darker blue */
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.timetable-table {
  width: 100%;
  border-collapse: collapse;
}

.timetable-table th, .timetable-table td {
  padding: 10px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.lab-class {
  background-color: #feebc8;
  color: #9c4221;
}

.theory-class {
  background-color: #bee3f8;
  color: #2b6cb0;
}
/* Admin Dashboard Updates */
.manage-users-btn {
  padding: 12px 24px;
  background-color: #4299e1;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.manage-users-btn:hover {
  background-color: #3182ce;
}

/* Remove database status card */
.status-card {
  display: none;
}
.login-card {
  display: none;
}

#login-container {
  display: block; /* Show login by default */
}
/* Login Page Styles */
.login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #f5f7fa;
  padding: 20px;
}

.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.logo-container h1 {
  font-size: 36px;
  color: #2c3e50;
  margin: 15px 0 0;
  font-weight: 700;
}

.logo {
  height: 80px;
  width: auto;
}

.login-content {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-content h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 30px;
  font-weight: 600;
}

.auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  width: 100%;
}

.auth-card h3 {
  font-size: 18px;
  color: #4a5568;
  margin: 0 0 20px 0;
  font-weight: 500;
}

.form-group {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: #4299e1;
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background-color: #4299e1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.auth-btn:hover {
  background-color: #3182ce;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: #718096;
  font-size: 14px;
}

.auth-switch a {
  color: #4299e1;
  text-decoration: none;
  font-weight: 500;
}

.error-message {
  color: #e53e3e;
  margin: 15px 0 0;
  text-align: center;
  font-size: 14px;
  min-height: 20px;
}/* Additional styles for new inputs */
.input-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.input-group {
  flex: 1;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4a5568;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 14px;
}

/* Timetable card styles */
.timetable-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.timetable-card h4 {
  margin-top: 0;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
/* Rest of your existing CSS remains the same */
