/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* MAIN CONTAINER */

.main-container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  background: #f8f9fa;
  padding-bottom: 50px;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .main-coxntainer {
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 32px;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 24px;
  }
}

/* END MAIN CONTAINEr */

/* FONT SIZES */

.title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

/* END FONT SIZES */

/* NAVBAR */

.navbar {
  background: #23272b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  position: relative;
  z-index: 100;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-right: 2rem;
}

.navbar-toggler {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}

.navbar-content {
  display: none;
  background-color: #343a40;
  padding: 1rem;
  overflow-x: hidden;
}

.navbar-content__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.navbar-content__list-logout {
  color: #fff;
  padding: 0.375rem 0.75rem;
  background: #dc3545;
  border: none;
  border-radius: 0.25rem;
  text-decoration: none;
}

.navbar-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-form label {
  color: #fff;
  margin-right: 0.3rem;
  font-size: 1rem;
}

.navbar-form .navbar-form-control {
  min-width: 120px;
  font-size: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  border: 1px solid #444;
  background: #2c3035;
  color: #fff;
}

.navbar-form .btn-login {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 0.4rem 1.1rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s;
}

.navbar-form .btn-login:hover {
  background: #218838;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0.7rem;
    padding-bottom: 1em;
  }
  .navbar-toggler {
    display: block;
    position: absolute;
    right: 1rem;
    top: 0.7rem;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    background: #23272b;
  }
  .navbar-content {
    flex-direction: column;
    align-items: stretch;
    display: none;
  }
  .navbar-content.active {
    display: flex;
  }
  .navbar-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
  }
}

.navbar-content__link {
  color: #fff;
  padding: 0.25rem 1rem;
  background: none;
  border: none;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.navbar-content__link:hover, .navbar-content__link:focus {
  background: #222;
  color: #ffd700;
}

/* END NAVBAR */

/* ALERTS */
.alert-danger, .alert-success {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  min-width: 260px;
  max-width: 350px;
  z-index: 1050;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  padding: 1rem 1.5rem;
  border-radius: 0.4rem;
  font-size: 1rem;
  animation: fadeOut 1.5s forwards;
}

.alert-success {
  animation: fadeOut 2s forwards;
}

.alert-danger {
  border: 1px solid #f5c6cb;
  background-color: #f8d7da;
  color: #721c24;
}

.alert-success {
  border: 1px solid #c3e6cb;
  background-color: #d4edda;
  color: #155724;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  60% {
    opacity: 1;
    visibility: visible;
  }
  99% {
    opacity: 0;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* END ALERTS */

/* SIMPLE TABLE */

.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.simple-table th, .simple-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.simple-table thead {
  background: #222;
  color: #fff;
}

.simple-table tbody tr:hover {
  background: #f5f5f5;
}

/* END SIMPLE TABLE */

/* INDEX HEADER */

.index-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.index-header__title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.index-header__link {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: #007bff;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s;
  cursor: pointer;
}

.index-header__btn:hover {
  background-color: #0056b3;
  color: #fff !important;
  text-decoration: none;
}

/* END INDEX HEADER */

/* MAIN FOOTER */

.main-footer {
  background: #0a0a0a;
  text-align: center;
  padding: clamp(10px, 2vw, 16px);
  color: #999999;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  border-top: 1px solid #333333;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  position: fixed;
  left: 0;
  bottom: 0;
}

/* END MAIN FOOTER */

/* CARD */

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 60%;
  margin: 40px auto;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.card__header {
  background: #2d3748;
  padding: 20px;
}

.card__header-title {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}

.card__body {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;
}

@media (max-width: 768px) {
  .card {
    max-width: 95%;
    margin: 20px auto;
  }
  .card__header {
    padding: 14px;
  }
  .card__body {
    padding: 14px;
  }
  .card__header-title {
    font-size: 1.15rem;
  }
}

/* END CARD */

/* FORMS ERROR MESSAGES */

.error-messages-section {
  margin: 0.25em 0;
  margin-bottom: 1em;
}

.error-messages-container {
  background: #ffe6e6;
  border: 1px solid #ff4d4d;
  border-radius: 3px;
  padding: 0.5em 0.75em;
}

.error-messages-list {
  list-style: disc inside;
  color: #b30000;
  margin: 0;
  padding: 0;
}

.error-message-item {
  margin-bottom: 0.25em;
}

/* END FORMS ERROR MESSAGES */

/* FORM BUTTON */

.btn-save {
  margin-top: 1rem;
  font-weight: 500;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  border: 2px solid #007bff;
  background: #fff;
  color: #007bff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-save:hover {
  background: #007bff;
  color: #fff;
}

.btn-edit {
  margin-top: 0.5rem;
  font-weight: 500;
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 0.3rem;
  border: 2px solid #ffc107;
  background: #fff;
  color: #ffc107;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-edit:hover {
  background: #ffc107;
  color: #fff;
}

.btn-secondary {
  margin-top: 0.5rem;
  font-weight: 500;
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 0.3rem;
  border: 2px solid #dee2e6;
  background: #f8f9fa;
  color: #495057;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: #dee2e6;
  color: #222;
}

/* END FORM BUTTON */

/* FORM  */

.form-section {
  background: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}


.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 1rem;
  margin-top: 0.25rem;
  box-sizing: border-box;
  background-color: #fff;
  color: #222;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: block;
}

.form-check {
  display: flex;
  align-items: center;
  min-height: 1.5rem;
  margin-bottom: 0.75rem;
}

.form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.5em;
  vertical-align: middle;
  appearance: none;
  background-color: #fff;
  border: 1.5px solid #adb5bd;
  border-radius: 0.25em;
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}

.form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.form-check-input:checked::after {
  content: "";
  display: block;
  width: 0.5em;
  height: 0.5em;
  background: #fff;
  position: absolute;
  top: 0.2em;
  left: 0.2em;
  border-radius: 0.15em;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(13,110,253,0.25);
  border-color: #0d6efd;
}

.form-check-label {
  margin-bottom: 0;
  font-weight: 400;
  color: #222;
  cursor: pointer;
  user-select: none;
}

/* END FORM */

/* SHOW RECORD */

.show-record {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem 0;
  border-radius: 8px;
  padding: 1.5rem;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.show-record div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.show-record label {
  color: #555;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.show-record span {
  color: #333;
  font-weight: 400;
  font-size: 1rem;
}

/* graduations */

.graduations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}

.graduation-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-left: 4px solid #007bff;
}

.graduation-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.graduation-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.field-value {
  font-size: 1rem;
  color: #374151;
  font-weight: 500;
}

@media (min-width: 768px) {
  .graduations-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .graduations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* END SHOW RECORD */

body {
  background-color: #fff;
  color: #222;
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* mobile related classes */

[data-bridge-components~="button"]
[data-controller~="bridge--button"] {
  display: none;
}

.mobile-btn-login {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
