/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #0f172a, #164e63);
  color: #f1f5f9;
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 25px;
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.964);
  backdrop-filter: blur(8px);
  text-align: center;
  color: #f8fafc;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
header {
  background: linear-gradient(to right, #0f172a, #164e63);
  color: #ffffff;
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 5px solid #2dd4bf;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  animation: fadeIn 1s ease-in-out;
}

header span {
  color: #2dd4bf;
  font-weight: 700;
}

header p {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #cbd5e1;
}

/* Nav */
nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin-top: 15px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

nav a:hover {
  background: #2dd4bf;
  color: #0f172a;
}

/* Section Headers */
h2 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 20px;
  border-left: 5px solid #2dd4bf;
  padding-left: 10px;
  position: relative;
  animation: fadeIn 0.8s ease-in-out;
}

/* List Styling */
ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

ul li {
  color: #f1f5f9;
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  padding-left: 20px;
}

ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2dd4bf;
  font-size: 1.2rem;
}

/* Social Links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(45, 212, 191, 0.1);
  color: #2dd4bf;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(45, 212, 191, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

input, textarea {
  padding: 12px;
  border: 1px solid #2dd4bf;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(15, 23, 42, 0.2);
  color: #f1f5f9;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus, textarea:focus {
  border-color: #2dd4bf;
  outline: none;
  background: rgba(15, 23, 42, 0.4);
}

/* Button */
button {
  background: #14b8a6;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #0d9488;
  transform: scale(1.03);
}

/* Footer */
footer {
  background: #0f172a;
  color: #ffffff;
  text-align: center;
  padding: 25px 0;
  margin-top: 60px;
  border-top: 5px solid #2dd4bf;
  font-size: 0.95rem;
  animation: fadeIn 1s ease-in-out;
}

/* White Link */
.white-link {
  color: white;
  text-decoration: none;
}

.white-link:hover {
  text-decoration: underline;
}

/* Profile */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-pic {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid white;
}

/* Table */
table {
  width: 90%;
  margin: 20px auto;
  border-collapse: collapse;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 5px 5px 15px #b2dfdb, -5px -5px 15px #e0f2f1;
}

th, td {
  padding: 15px;
  text-align: left;
  background-color: #e0f7fa;
  color: #00695c;
}

th {
  background-color: #b2ebf2;
  font-weight: bold;
}

tr:hover {
  background-color: #b2dfdb;
  transition: 0.3s;
}

/* Logout Button */
.logout {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}

.logout a {
  background-color: #00897b;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s;
}

.logout a:hover {
  background-color: #00695c;
}

/* General Heading */
h1 {
  text-align: center;
  color: #f1f5f5;
  margin-top: 30px;
}
/* Star Rating */
.star-rating {
  display: flex;
  justify-content: center;
  direction: rtl;
  font-size: 2rem;
  gap: 10px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  cursor: pointer;
  color: #94a3b8;
  transition: transform 0.2s, color 0.3s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #fbbf24;
  transform: scale(1.2);
}

/* Feedback Section Styling */
#feedback {
  margin-top: 40px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid #2dd4bf;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}

#feedback p {
  font-size: 1.1rem;
  color: #f1f5f9;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  .container {
    width: 95%;
    padding: 20px;
    margin: 20px auto;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }

  form {
    width: 100%;
  }

  input, textarea {
    font-size: 0.95rem;
    padding: 10px;
  }

  button {
    font-size: 0.95rem;
    padding: 10px 20px;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-pic {
    width: 150px;
    height: 150px;
  }

  table {
    width: 100%;
    font-size: 0.9rem;
    overflow-x: auto;
    display: block;
  }

  th, td {
    padding: 10px;
    white-space: nowrap;
  }
/* Star Rating */
.star-rating {
  display: flex;
  justify-content: center;
  direction: rtl;
  font-size: 2rem;
  gap: 10px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  cursor: pointer;
  color: #94a3b8;
  transition: transform 0.2s, color 0.3s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #fbbf24;
  transform: scale(1.2);
}

/* Feedback Section Styling */
#feedback {
  margin-top: 40px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid #2dd4bf;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}

#feedback p {
  font-size: 1.1rem;
  color: #f1f5f9;
}

  .logout a {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}
#loading-message {
  display: none;
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
  color: #007BFF;
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #007BFF;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.container {
  max-width: 900px;
  margin: 0 auto; /* Centers the container horizontally */
  padding: 20px;
}

.profile-header {
  display: flex;
  flex-direction: column; /* Stack vertically on small screens */
  align-items: center; /* Center items horizontally */
  text-align: center;
}

@media (min-width: 768px) {
  .profile-header {
    flex-direction: row; /* Side by side on wider screens */
    justify-content: center; /* Center the row as a whole */
    text-align: left;
    gap: 30px;
  }
}
