/* assets/css/style.css */

/* Login Form Wrapper */
.sch-idex-login-wrapper {
  max-width: 400px;
  margin: 50px auto;
  padding: 30px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sch-idex-login-wrapper h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.sch-idex-login-wrapper .sch-idex-error {
  background: #ffebe8;
  border: 1px solid #c00;
  color: #c00;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
}

.sch-idex-login-wrapper label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.sch-idex-login-wrapper input[type="text"],
.sch-idex-login-wrapper input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 15px;
}

.sch-idex-login-wrapper input[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #e20000;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sch-idex-login-wrapper input[type="submit"]:hover {
  background-color: #b30000;
}

/* Dashboard Styles */
.sch-idex-dashboard {
  max-width: 1100px;
  margin: 30px auto;
  padding: 30px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.sch-idex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e20000;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.sch-idex-header h1 {
  margin: 0;
  font-size: 24px;
}

.sch-idex-header a {
  background-color: #333;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
}
.sch-idex-header a:hover {
  background-color: #555;
}

.sch-idex-dashboard h2 {
  color: #e20000;
}
/* Add this to the end of assets/css/style.css */

/* Dashboard Content Area */
.sch-idex-content {
  margin-top: 20px;
}

/* Notice/Info Box */
.sch-idex-notice {
  background-color: #eef7ff;
  border-left: 5px solid #2196f3;
  padding: 15px 20px;
  margin: 20px 0;
}

/* Card layout for schools/classes */
.sch-idex-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.sch-idex-card {
  display: block;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sch-idex-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.sch-idex-card h3 {
  margin: 0 0 10px 0;
  color: #e20000;
}

.sch-idex-card span {
  font-size: 14px;
  color: #555;
}
/* Add this to the end of assets/css/style.css */

/* Header for views inside the dashboard */
.sch-idex-view-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.sch-idex-view-header h2 {
  margin: 0;
}

.sch-idex-back-link {
  background-color: #f0f0f0;
  color: #333;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.sch-idex-back-link:hover {
  background-color: #e0e0e0;
}

/* General Table Styles */
.sch-idex-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.sch-idex-table th,
.sch-idex-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: right;
}

.sch-idex-table th {
  background-color: #f7f7f7;
  font-weight: bold;
}

.sch-idex-table tbody tr:nth-child(even) {
  background-color: #fdfdfd;
}

.sch-idex-table tbody tr:hover {
  background-color: #f1f1f1;
}

.sch-idex-table td a {
  text-decoration: none;
  color: #e20000;
  font-weight: bold;
}

.sch-idex-table td a:hover {
  text-decoration: underline;
}
/* Add this to the end of assets/css/style.css */

/* Success Message Box */
.sch-idex-success {
  background-color: #e8f5e9;
  border-left: 5px solid #4caf50;
  padding: 15px 20px;
  margin: 20px 0;
  color: #2e7d32;
}

/* Report Form Styles */
.sch-idex-report-form-wrapper label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.sch-idex-report-form-wrapper textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 5px;
}

.sch-idex-report-form-wrapper small {
  color: #777;
  font-size: 13px;
}

.sch-idex-report-form-wrapper input[type="submit"] {
  margin-top: 15px;
  padding: 12px 25px;
  background-color: #e20000;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sch-idex-report-form-wrapper input[type="submit"]:hover {
  background-color: #b30000;
}
/* Add this to the end of assets/css/style.css */

/* Section styling for forms and history */
.sch-idex-form-section,
.sch-idex-history-section {
  background-color: #f9f9f9;
  border: 1px solid #e5e5e5;
  padding: 25px;
  border-radius: 8px;
  margin-top: 30px;
}

.sch-idex-form-section h3,
.sch-idex-history-section h3 {
  margin-top: 0;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.sch-idex-form-section input[type="submit"] {
  padding: 10px 20px;
  font-size: 15px;
}

/* Report History List */
.sch-idex-report-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sch-idex-report-list li {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
}

.sch-idex-report-list .report-date {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.sch-idex-report-list .report-content {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}
/* Add this to the end of assets/css/style.css */

/* Reminder Display Box */
.sch-idex-current-reminder {
  background-color: #fff;
  border: 1px solid #e20000;
  border-right-width: 5px;
  padding: 15px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.sch-idex-current-reminder h4 {
  margin: 0 0 10px 0;
  color: #333;
}

.sch-idex-current-reminder p {
  margin: 0;
  color: #555;
}

.sch-idex-current-reminder em {
  color: #888;
}

/* Sub-form for reminder */
.sch-idex-sub-form {
  border-top: 1px dashed #ccc;
  padding-top: 20px;
  margin-top: 20px;
}
