/* General Styles for light mode*/
body {
    font-family: Verdana, sans-serif;
    background: url('/resources/light-mode-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    transition: background-image 0.5s ease;
    margin: 0;
    padding: 0;
    color: #222;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: rgba(239, 247, 245, 0.8); /* Slight transparency */
  border-bottom: 1px solid #ccc;
}

body.dark .top-bar {
  background-color: rgba(34, 33, 33, 0.7);
  border-color: #444;
}
/*top nav*/
.school-brand {
  display: flex;
  align-items: center;
}

.school-logo {
  height: 100px;
  margin-right: 10px;
}

.school-name {
  font-family: "Fleur De Leah", cursive;
  font-style: normal;
  font-size: 50px;
  font-weight: bold;
  color: #222;
}

body.dark .school-name {
  color: #eee;
}

.toggle-wrapper button {
  font-size: 18px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  background-color: #007bff;
  color: white;
  transition: background 0.3s;
}

.toggle-wrapper button:hover {
  background-color: #0056b3;
}

/*Header */
header {
    background: #2ba7c6;
    color: #fff;
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-family: Georgia, serif;
}

header p {
    margin: 0;
    font-size: 1.1rem;
}
#sub-heading::after {
  content: '|';
  animation: blink 1s infinite;
  color: #333;
  margin-left: 2px;
}

#sub-heading.done::after {
  animation: none;
  content: '';
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/*form */
#registration-section {
    background: #fff;
    margin: 2rem auto 1rem auto;
    padding: 2rem;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 0.6rem;
    background-color: #67bbd0;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

button[type="submit"] {
    background: #2ba7c6;
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 2px 2px 3px #215b7a
}
.form-button {
    position: relative;
    padding: 3px;
    background: linear-gradient(90deg, #03a9f4, #f441a5);
    border-radius: 0.9em;
    transition: all 0.4s ease;
  }
  
  .form-button::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 0.9em;
    z-index: -10;
    filter: blur(0);
    transition: filter 0.4s ease;
  }
  
  .form-button:hover::before {
    background: linear-gradient(90deg, #03a9f4, #f441a5);
    filter: blur(1.2em);
  }
  .form-button:active::before {
    filter: blur(0.2em);
  }

button[type="submit"]:hover {
    background: #1e768b;
}
/*Table of data*/
#display-section {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#display-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2ba7c6;
}

.table-container {
    max-height: 350px;
    overflow-y: auto;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

#studentsTable {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

#studentsTable th, #studentsTable td {
    padding: 0.8rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

#studentsTable th {
    background: #f0f4fa;
    color: #2ba7c6;
    font-weight: 700;
}

#studentsTable tr:last-child td {
    border-bottom: none;
}

.action-btn {
    background: #fff;
    border: 1px solid #2ba7c6;
    color: #2ba7c6;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    margin-right: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.action-btn:hover {
    background: #2ba7c6;
    color: #fff;
}

/* Scrollbar */
.table-container::-webkit-scrollbar {
    width: 8px;
}
.table-container::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 4px;
}
.table-container::-webkit-scrollbar-track {
    background: #f4f6f8;
}

@media (max-width: 700px) {
    #display-section, #registration-section {
        padding: 1rem;
    }
    #studentsTable {
        min-width: 400px;
    }
}
/* Dark Mode Styles */
body.dark {
    background: url('/resources/dark-mode-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    transition: background-image 0.5s ease;
    color: #ffffff;
  }
  
  body.dark input,
  body.dark button {
    background-color: #1e1e1e;
    color: #fff;
    border: 1px solid #444;
  }
  
  body.dark table {
    background-color: #1e1e1e;
    color: #fff;
  }
  
  body.dark tr:nth-child(even) {
    background-color: #2a2a2a;
  }
  

  body.dark #registration-section label {
    color: black;
}
/* Dark mode toggle button with neumorphism */
.toggle {
  display: inline-block;
  position: relative;
  height: 75px;
  width: 75px;
}

.toggle:before {
  content: '';
  box-shadow: 0;
  border-radius: 60%;
  background: #fff;
  position: absolute;
  margin-left: -26px;
  margin-top: -26px;
  opacity: 0.2;
  height: 52px;
  width: 52px;
  left: 50%;
  top: 50%;
}

.toggle input {
  opacity: 0;
  position: absolute;
  cursor: pointer;
  z-index: 1;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}

.toggle .button {
  transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 15px 25px -4px rgba(0, 0, 0, 0.5), inset 0 -3px 4px -1px rgba(0, 0, 0, 0.2), 0 -10px 15px -1px rgba(255, 255, 255, 0.6), inset 0 3px 4px -1px rgba(255, 255, 255, 0.2), inset 0 0 5px 1px rgba(255, 255, 255, 0.8), inset 0 20px 30px 0 rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  position: absolute;
  background: #eaeaea;
  margin-left: -27px;
  margin-top: -27px;
  display: block;
  height: 54px;
  width: 54px;
  left: 50%;
  top: 50%;
}

.toggle .label {
  transition: color 300ms ease-out;
  line-height: 65px; /* height of sun */
  text-align: center;
  position: absolute;
  font-weight: 700;
  font-size: 25px; /*this 2*/
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  height: 100%;
  width: 100%;
  color: rgba(0, 0, 0, 0.9);
}

.toggle input:active ~ .button {
  filter: blur(0.5px);
  box-shadow: 0 12px 25px -4px rgba(0, 0, 0, 0.4), inset 0 -8px 30px 1px rgba(255, 255, 255, 0.9), 0 -10px 15px -1px rgba(255, 255, 255, 0.6), inset 0 8px 25px 0 rgba(0, 0, 0, 0.4), inset 0 0 10px 1px rgba(255, 255, 255, 0.6);
}

.toggle input:active ~ .label {
  font-size: 26px;
  color: rgba(0, 0, 0, 0.45);
}

.toggle input:checked ~ .button {
  filter: blur(0.5px);
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.4), inset 0 -8px 25px -1px rgba(255, 255, 255, 0.9), 0 -10px 15px -1px rgba(255, 255, 255, 0.6), inset 0 8px 20px 0 rgba(0, 0, 0, 0.2), inset 0 0 5px 1px rgba(255, 255, 255, 0.6);
}

.toggle input:checked ~ .label {
  color: rgba(0, 0, 0, 0.8);
}


/* Dark mode override styles */
body.dark .dark-toggle-btn {
  background: #2b2b2b;
  box-shadow: 8px 8px 15px #1f1f1f, -8px -8px 15px #383838;
}

body.dark .dark-toggle-btn .icon {
  background-color: #f9f9f9;
}

