/* styles.css */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
}

h1, h2, h3 {
  text-align: center;
  color: #2c3e50;
}

form {
  display: flex;
  flex-direction: column;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="file"] {
  padding: 12px 15px;
  margin: 10px 0 20px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="file"]:focus {
  border-color: #3498db;
  outline: none;
}

button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 14px;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #2980b9;
}

a {
  color: #3498db;
  text-decoration: none;
  margin: 0 10px;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

ul li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th, table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

table th {
  background-color: #3498db;
  color: white;
}

img {
  border-radius: 6px;
  max-width: 150px;
  display: block;
  margin: 10px 0;
}

.error-message {
  color: #e74c3c;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}



@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 65px;
    right: -100%;
    flex-direction: column;
    background: #722f37;
    width: 220px;
    height: calc(100vh - 65px); /* restricts height */
    overflow-y: auto;           /* scrolls if longer */
    padding-top: 10px;
    transition: right 0.3s ease-in-out;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.4);
    border-radius: 10px 0 0 10px;
    z-index: 998;
  }

  nav ul li {
    margin: 12px 0;
    text-align: center;
  }

  nav ul.show {
    right: 0;
  }
}


.register-container {
    background: #fff;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.register-header {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
}

button[type="submit"] {
    padding: 14px;
    font-size: 16px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: #0056b3;
}

/* Calendar icon inside date fields */
.icon-input {
    position: relative;
}

.icon-input input[type="date"] {
    padding-right: 40px;
}

.calendar-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 18px;
    color: #555;
}



.jotter-paper {
  background: #fff;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 700px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  font-family: 'Georgia', serif;
  line-height: 1.8;
  border: 1px solid #ccc;
  background-image: repeating-linear-gradient(
    to bottom,
    #fff,
    #fff 35px,
    #f5f5f5 36px
  );
}

.profile-section img.profile-photo {
  max-width: 120px;
  border-radius: 5px;
  display: block;
  margin-bottom: 1rem;
}

.profile-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-details li {
  padding: 8px 0;
  border-bottom: 1px dotted #aaa;
  font-size: 16px;
}

.print-button {
  display: inline-block;
  margin: 1rem auto;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
}

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

/* PRINT STYLING */
@media print {
  body {
    background: white !important;
  }

  .print-button {
    display: none;
  }

  .jotter-paper {
    box-shadow: none !important;
    border: none !important;
    background-image: none !important;
    max-width: 100%;
    padding: 0;
    margin: 0;
    font-size: 14pt;
  }

  .profile-section img.profile-photo {
    max-width: 100px;
    border: none;
  }

  .profile-details li {
    font-size: 14pt;
    border: none;
    padding: 6pt 0;
  }
}

.jotter-paper {
  background: #fff;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 600px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.8;
  border: 1px solid #ccc;
  background-image: repeating-linear-gradient(
    to bottom,
    #fff,
    #fff 35px,
    #f5f5f5 36px
  );
}

.profile-photo {
  max-width: 120px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1rem;
}

.profile-section label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
}

.profile-section input,
.profile-section select {
  width: 100%;
  padding: 8px 12px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.profile-section button {
  margin-top: 1.5rem;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}



.running-text {
  width: 100%;
  padding: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: red;
  border: 2px solid #007bff;
  border-radius: 6px;
  background: linear-gradient(90deg, #fff, #f0f8ff, #fff);
  background-size: 200% auto;
  animation: run-text 3s linear infinite;
}

@keyframes run-text {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.sky-blue-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background-color: #38bdf8; /* Sky blue */
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.sky-blue-btn:hover {
  background-color: #0ea5e9;
}






/* McQueen-style running text effect inside inputs */
.mcqueen-input {
  font-family: 'Courier New', monospace;
  background: linear-gradient(to right, #fff, #f0f8ff);
  border: 2px solid #87ceeb;
  padding: 12px;
  font-size: 1rem;
  color: #333;
  animation: scrollText 15s linear infinite;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Animate placeholder text like running text */
.mcqueen-input::placeholder {
  animation: marquee 10s linear infinite;
  display: inline-block;
  white-space: nowrap;
  color: #999;
}

@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Sky blue styled buttons */
.sky-blue {
  background-color: #00bfff;
  color: white;
  border: none;
  padding: 12px 20px;
  margin-top: 10px;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.sky-blue:hover {
  background-color: #1e90ff;
  cursor: pointer;
}


/*===========================*/


.admin-dashboard {
  background: #fffaf0;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.admin-dashboard h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.admin-section {
  margin-bottom: 40px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

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

.admin-table th {
  background: #f7f9fb;
  font-weight: bold;
}

.thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.confirm-btn {
  background-color: #00bfff;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
}

.confirm-btn:hover {
  background-color: #1e90ff;
}

