/* Modern Enhancements for Sensible Staging Application */
/* This file enhances the existing styling with modern design principles */

/* ===== GLOBAL ENHANCEMENTS ===== */

/* Improved typography and spacing */
body {
  line-height: 1.6;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* Enhanced container styling */
.student-area-wrap,
.adminPortalOptions,
.assignment-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Section headings */
.student-area-wrap h2 {
  color: #2b3443;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #43b9ee;
  position: relative;
}

.student-area-wrap h2 span {
  font-size: 0.6em;
  font-weight: 400;
  color: #666;
  display: block;
  margin-top: 8px;
  line-height: 1.4;
}

/* ===== HEADER ENHANCEMENTS ===== */

.portal-header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  background: rgba(43, 52, 67, 0.95);
}

.portal-header h1 {
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ===== NAVIGATION ENHANCEMENTS ===== */

.second-nav {
  backdrop-filter: blur(10px);
  background: rgba(43, 52, 67, 0.98);
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
}

.second-nav a {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.second-nav a:hover {
  background: rgba(67, 185, 238, 0.1);
  transform: translateX(4px);
}

.hamburger-wrap {
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(67, 185, 238, 0.3);
}

.hamburger-wrap:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(67, 185, 238, 0.4);
}

/* ===== ACCOUNT CARDS ===== */

.single-account {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.single-account:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.single-account-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.account-type {
  font-weight: 600;
  color: #2b3443;
  font-size: 1.1em;
}

.account-value {
  font-weight: 700;
  color: #43b9ee;
  font-size: 1.2em;
}

/* ===== TRANSACTION TABLES ===== */

.single-transaction {
  background: white;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.single-transaction:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.single-transaction-inner {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.table-header {
  background: linear-gradient(135deg, #43b9ee 0%, #3aa8dd 100%);
  color: white;
  font-weight: 600;
  border: none;
}

.table-header .single-transaction-inner {
  padding: 12px 20px;
}

.transaction-date,
.transaction-category,
.transaction-note,
.transaction-amount {
  flex: 1;
  font-weight: 500;
}

.transaction-amount {
  text-align: right;
  font-weight: 600;
  color: #43b9ee;
}

/* ===== INVESTMENT TABLES ===== */

.single-investment {
  background: white;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
}

.single-investment:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.single-investment.si-header {
  background: linear-gradient(135deg, #43b9ee 0%, #3aa8dd 100%);
  color: white !important;
  font-weight: 600;
  border: none;
  padding: 12px 20px;
  margin-bottom: 12px;
}

.single-investment.si-header > span {
  color: #2b3443 !important;
  font-weight: 600;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.single-investment > span {
  flex: 1;
  text-align: left;
  padding: 0 8px;
  color: #2b3443;
}

.single-investment > span:last-child {
  text-align: center;
}

/* ===== BUTTONS AND LINKS ===== */

.boxSecondLink a,
.submit-button,
input[type="submit"],
button[type="submit"] {
  background: linear-gradient(135deg, #43b9ee 0%, #3aa8dd 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  box-shadow: 0 2px 4px rgba(67, 185, 238, 0.3);
}

.boxSecondLink a:hover,
.submit-button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: linear-gradient(135deg, #3aa8dd 0%, #2b9bcc 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 185, 238, 0.4);
}

.sellstock {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.sellstock:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

/* Action links in tables */
.single-transaction a,
.single-investment a {
  color: #43b9ee;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: rgba(67, 185, 238, 0.1);
}

.single-transaction a:hover,
.single-investment a:hover {
  background: #43b9ee;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(67, 185, 238, 0.3);
}

/* ===== FORM ELEMENTS ===== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: #43b9ee;
  box-shadow: 0 0 0 3px rgba(67, 185, 238, 0.1);
  outline: none;
}

/* Login form enhancements */
form.login {
  background: rgba(40, 40, 40, 0.95) !important;
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

form.login h3 {
  color: white;
  font-family: "League Spartan", sans-serif;
  text-transform: uppercase;
  font-size: 2.5em;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #43b9ee;
  text-align: center;
  letter-spacing: 0.05em;
}

form.login .form-fields span {
  margin-bottom: 20px;
}

form.login .form-fields span label {
  color: white;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9em;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

form.login .form-fields span input[type="text"],
form.login .form-fields span input[type="password"] {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 1em;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

form.login .form-fields span input[type="text"]:focus,
form.login .form-fields span input[type="password"]:focus {
  border-color: #43b9ee;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(67, 185, 238, 0.2);
}

form.login .form-actions button {
  background: linear-gradient(135deg, #43b9ee 0%, #3aa8dd 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(67, 185, 238, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

form.login .form-actions button:hover {
  background: linear-gradient(135deg, #3aa8dd 0%, #2b9bcc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(67, 185, 238, 0.4);
}

form.login .form-actions .login-cancel {
  color: rgba(255, 255, 255, 0.7);
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-left: 12px;
}

form.login .form-actions .login-cancel:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* ===== TRANSFER AND FORM ENHANCEMENTS ===== */

.transferWrap {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.transferWrap form {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.transferWrap form > * {
  flex: 1;
  min-width: 200px;
}

.transferWrap label {
  display: block;
  font-size: 0.9em;
  font-weight: 600;
  color: #2b3443;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.transferWrap input[type="submit"] {
  background: linear-gradient(135deg, #43b9ee 0%, #3aa8dd 100%);
  color: white;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(67, 185, 238, 0.3);
  letter-spacing: 0.05em;
}

.transferWrap input[type="submit"]:hover {
  background: linear-gradient(135deg, #3aa8dd 0%, #2b9bcc 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 185, 238, 0.4);
}

/* Stock trading enhancements */
.buyResults {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: none;
}

body.resultsLoaded .buyResults {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  animation: fadeInUp 0.6s ease-out;
}

.br-left .stockName,
span.currentPrice {
  text-transform: uppercase;
  font-weight: 700;
  color: #2b3443;
  margin-right: 20px;
}

.br-left .stockName:before,
span.currentPrice:before {
  content: attr(data-label);
  display: block;
  font-size: 0.7em;
  margin-bottom: 4px;
  color: #43b9ee;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

span.purchaseStock,
span.getPrice {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

span.purchaseStock:hover,
span.getPrice:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

.buyBoxWrap:after {
  content: "*Prices expire after 1 minute";
  display: block;
  color: #666;
  font-size: 0.8em;
  margin-top: 12px;
  font-style: italic;
}

/* ===== ADMIN TABLE ENHANCEMENTS ===== */

/* Modern table styling for admin pages */
table.currentAssignments,
table.studentTable,
.adminPortalOptions table {
  margin-top: 20px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
}

/* Table headers */
table.currentAssignments thead,
table.studentTable thead,
.adminPortalOptions table thead {
  background: linear-gradient(135deg, #43b9ee 0%, #3aa8dd 100%);
  color: white;
}

table.currentAssignments th,
table.studentTable th,
.adminPortalOptions table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
}

/* Table rows */
table.currentAssignments tbody tr,
table.studentTable tbody tr,
.adminPortalOptions table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

table.currentAssignments tbody tr:last-child,
table.studentTable tbody tr:last-child,
.adminPortalOptions table tbody tr:last-child {
  border-bottom: none;
}

table.currentAssignments tbody tr:hover,
table.studentTable tbody tr:hover,
.adminPortalOptions table tbody tr:hover {
  background: rgba(67, 185, 238, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Table cells */
table.currentAssignments td,
table.studentTable td,
.adminPortalOptions table td {
  padding: 16px 20px;
  font-size: 0.95em;
  color: #2b3443;
  border: none;
  vertical-align: middle;
}

/* Alternating row colors */
table.currentAssignments tbody tr:nth-child(even),
table.studentTable tbody tr:nth-child(even),
.adminPortalOptions table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

table.currentAssignments tbody tr:nth-child(even):hover,
table.studentTable tbody tr:nth-child(even):hover,
.adminPortalOptions table tbody tr:nth-child(even):hover {
  background: rgba(67, 185, 238, 0.08);
}

/* Action buttons in tables */
td.editAssignment,
span.editStudent {
  background: linear-gradient(135deg, #43b9ee 0%, #3aa8dd 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(67, 185, 238, 0.3);
  display: inline-block;
  text-decoration: none;
  letter-spacing: 0.05em;
}

td.editAssignment:hover,
span.editStudent:hover {
  background: linear-gradient(135deg, #3aa8dd 0%, #2b9bcc 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 185, 238, 0.4);
}

/* ===== FORM ENHANCEMENTS FOR ADMIN PAGES ===== */

/* Assignment form styling */
.assignment-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.assignment-section h3 {
  color: #2b3443;
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #43b9ee;
}

/* Question section styling */
.question-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.question-section:hover {
  border-color: #43b9ee;
  box-shadow: 0 2px 8px rgba(67, 185, 238, 0.1);
}

.answer-choices {
  margin: 15px 0 15px 25px;
}

.answer-choice {
  display: flex;
  align-items: center;
  margin: 12px 0;
  gap: 12px;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.answer-choice:hover {
  background: rgba(67, 185, 238, 0.05);
}

.answer-choice input[type="text"] {
  flex-grow: 1;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.95em;
  transition: all 0.3s ease;
}

.answer-choice input[type="text"]:focus {
  border-color: #43b9ee;
  box-shadow: 0 0 0 3px rgba(67, 185, 238, 0.1);
  outline: none;
}

/* Button styling for admin forms */
.add-question-btn,
.add-choice-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.add-question-btn:hover,
.add-choice-btn:hover {
  background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.remove-btn {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8em;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.remove-btn:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

.save-btn {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.save-btn:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* CSV upload section */
.csv-upload {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 24px;
  border-radius: 8px;
  margin: 24px 0;
  border: 2px dashed #43b9ee;
  text-align: center;
}

.csv-upload h3 {
  color: #2b3443;
  margin-bottom: 16px;
  font-weight: 600;
}

/* Form field enhancements */
.question-text,
.choice-text {
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.95em;
  transition: all 0.3s ease;
  background: white;
}

.question-text:focus,
.choice-text:focus {
  border-color: #43b9ee;
  box-shadow: 0 0 0 3px rgba(67, 185, 238, 0.1);
  outline: none;
}

.question-text {
  width: 100%;
  margin-bottom: 12px;
}

.choice-text {
  padding: 10px 12px;
}

/* Auto-save status */
.auto-save-status {
  color: #6c757d;
  font-size: 0.8em;
  margin-top: 8px;
  font-style: italic;
}

/* ===== BASIC FORM ENHANCEMENTS ===== */

/* Basic form styling for simple forms */
form {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

form label {
  display: block;
  margin-bottom: 8px;
  margin-top: 20px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9em;
  color: #2b3443;
  letter-spacing: 0.05em;
}

form label:first-child {
  margin-top: 0;
}

form input[type="text"],
form input[type="number"],
form input[type="date"],
form input[type="email"],
form input[type="password"],
form select {
  width: 100%;
  font-size: 1em;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: white;
  box-sizing: border-box;
}

form input[type="text"]:focus,
form input[type="number"]:focus,
form input[type="date"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form select:focus {
  border-color: #43b9ee;
  box-shadow: 0 0 0 3px rgba(67, 185, 238, 0.1);
  outline: none;
}

form input[type="submit"] {
  background: linear-gradient(135deg, #43b9ee 0%, #3aa8dd 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(67, 185, 238, 0.3);
  letter-spacing: 0.05em;
  margin-top: 20px;
  width: auto;
}

form input[type="submit"]:hover {
  background: linear-gradient(135deg, #3aa8dd 0%, #2b9bcc 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 185, 238, 0.4);
}

/* ===== ADDITIONAL TABLE ENHANCEMENTS ===== */

/* Schools table styling */
.schools-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.schools-table th {
  background: linear-gradient(135deg, #2b3443 0%, #1e2a3a 100%);
  color: white;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
}

.schools-table td {
  padding: 16px 20px;
  font-size: 0.95em;
  color: #2b3443;
  border: none;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.schools-table tr:hover {
  background: rgba(67, 185, 238, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.schools-table tr:last-child td {
  border-bottom: none;
}

/* Transactions table styling */
.transactions-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.transactions-table th {
  background: linear-gradient(135deg, #43b9ee 0%, #3aa8dd 100%);
  color: white;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
}

.transactions-table td {
  padding: 16px 20px;
  font-size: 0.95em;
  color: #2b3443;
  border: none;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.transactions-table tr:hover {
  background: rgba(67, 185, 238, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.transactions-table tr:last-child td {
  border-bottom: none;
}

/* Transaction type styling */
.transactions-table td.credit {
  color: #28a745;
  font-weight: 600;
}

.transactions-table td.debit {
  color: #dc3545;
  font-weight: 600;
}

/* ===== MODAL ENHANCEMENTS ===== */

/* Modal styling for admin pages */
.modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.modal-content h3 {
  color: #2b3443;
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #43b9ee;
}

.modal-content input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.modal-content input:focus {
  border-color: #43b9ee;
  box-shadow: 0 0 0 3px rgba(67, 185, 238, 0.1);
  outline: none;
}

.modal-content button {
  background: linear-gradient(135deg, #43b9ee 0%, #3aa8dd 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  margin-right: 12px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(67, 185, 238, 0.3);
  letter-spacing: 0.05em;
}

.modal-content button:hover {
  background: linear-gradient(135deg, #3aa8dd 0%, #2b9bcc 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 185, 238, 0.4);
}

.close {
  color: #666;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
  transition: all 0.3s ease;
}

.close:hover {
  color: #2b3443;
  transform: scale(1.1);
}

/* ===== ASSIGNMENT SPECIFIC STYLING ===== */

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

.assignment-header {
  margin-bottom: 30px;
}

.assignment-header h1 {
  color: #2b3443;
  margin-bottom: 16px;
  font-size: 2.2em;
  font-weight: 700;
}

.assignment-meta {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #43b9ee;
}

.assignment-meta p {
  color: #666;
  font-size: 0.95em;
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.assignment-meta p strong {
  color: #2b3443;
  font-weight: 600;
}

.question {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.question:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.question-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  font-weight: 500;
  color: #2b3443;
  line-height: 1.5;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.choice:hover {
  background: #e3f2fd;
  border-color: #43b9ee;
  transform: translateX(4px);
}

.choice input[type="radio"] {
  margin: 0;
  transform: scale(1.2);
}

.slideshow-embed {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.offline-instructions {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 16px;
  color: #856404;
  text-align: center;
  font-weight: 500;
}

/* ===== ADMIN SPECIFIC STYLING ===== */

.adminPortalMenu {
  background: linear-gradient(135deg, #43b9ee 0%, #3aa8dd 100%);
  border-radius: 12px 0 0 12px;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
}

.adminPortalMenu li a {
  color: white;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: block;
  transition: all 0.3s ease;
}

.adminPortalMenu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.adminPortalOptions {
  background: #f8f9fa;
  border-radius: 0 12px 12px 0;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */

@media (max-width: 768px) {
  .student-area-wrap,
  .adminPortalOptions,
  .assignment-container {
    padding: 16px;
    margin-bottom: 16px;
  }

  .single-transaction-inner,
  .single-investment {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .single-account-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .transaction-date,
  .transaction-category,
  .transaction-note,
  .transaction-amount {
    text-align: center;
  }

  .single-investment > span {
    text-align: center;
  }
}

/* ===== ANIMATIONS ===== */

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

.student-area-wrap,
.adminPortalOptions,
.assignment-container {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== UTILITY CLASSES ===== */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

.p-0 {
  padding: 0;
}

/* ===== VISUAL HIERARCHY ENHANCEMENTS ===== */

/* Improved spacing for better readability */
main {
  padding: 60px 50px 50px 50px;
}

main.homePortal {
  padding-top: 160px;
}

/* Enhanced card shadows for depth */
.student-area-wrap:hover,
.adminPortalOptions:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better contrast for text */
.student-area-wrap p,
.adminPortalOptions p {
  color: #555;
  line-height: 1.6;
}

/* Enhanced focus states for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 2px solid #43b9ee;
  outline-offset: 2px;
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

/* ===== ENHANCED FOCUS STATES ===== */

*:focus {
  outline: 2px solid #43b9ee;
  outline-offset: 2px;
}

/* ===== HERO SECTION ENHANCEMENTS ===== */

.hero {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.hero h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-actions {
  animation: fadeInUp 1s ease-out 0.3s both;
}

 {
}

.goToPortal,
span.login-trigger {
  background: linear-gradient(135deg, #43b9ee 0%, #3aa8dd 100%);
  color: white;
  padding: 16px 32px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(67, 185, 238, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

.goToPortal:hover,
span.login-trigger:hover {
  background: linear-gradient(135deg, #3aa8dd 0%, #2b9bcc 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(67, 185, 238, 0.4);
}

.hero-actions p a {
  color: white;
  font-size: 1.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.hero-actions p a:hover {
  color: #43b9ee;
  border-bottom-color: #43b9ee;
}

/* ===== LOADING STATES ===== */

.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #43b9ee;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn-table-action,
.editAssignment,
span.editStudent {
  background: #43b9ee;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(67, 185, 238, 0.15);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-table-action:hover,
.editAssignment:hover,
span.editStudent:hover {
  background: #1fa6e0;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(67, 185, 238, 0.25);
}

table.currentAssignments td,
table.currentAssignments th {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  vertical-align: middle;
  padding: 18px 20px;
}

table.currentAssignments tr {
  height: 60px;
  vertical-align: middle;
}

table.currentAssignments th,
table.studentTable th,
.schools-table th,
.transactions-table th,
.adminPortalOptions table th {
  /* Remove left alignment for headers */
  text-align: center;
}

/* Make sure all columns are equal width */
table.currentAssignments th,
table.currentAssignments td,
table.studentTable th,
table.studentTable td,
.schools-table th,
.schools-table td,
.transactions-table th,
.transactions-table td,
.adminPortalOptions table th,
.adminPortalOptions table td {
  width: auto;
}

/* Header and cell alignment */
.studentTable th,
.studentTable td {
  vertical-align: middle;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  padding: 18px 20px;
}

/* Make the action button vertically centered and consistent */
.studentTableActions .editStudent,
.studentTableActions .btn-table-action {
  margin: 0 auto;
  display: inline-block;
  vertical-align: middle;
}

.currentAssignments th.assignmentName,
.currentAssignments td.assignmentName {
  text-align: left;
  min-width: 220px;
  max-width: 400px;
}

.currentAssignments th.points,
.currentAssignments td.points,
.currentAssignments th.numQuestions,
.currentAssignments td.numQuestions {
  text-align: center;
  min-width: 80px;
  width: 100px;
}

.currentAssignments th.type,
.currentAssignments td.type {
  text-align: center;
  min-width: 120px;
  width: 140px;
}

.currentAssignments th.editCol,
.currentAssignments td.editCol {
  text-align: center;
  min-width: 140px;
  width: 160px;
}
