/* =========================================================
   GLOBAL VARIABLES & BASE STYLES
========================================================= */
:root {
  --primary: #004080;
  --secondary: #007BFF;
  --accent: #28A745;
  --gray: #6c757d;
  --light-bg: #f4f6f9;
  --text: #333;
  --radius: 12px;
  --shadow: 0 4px 10px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #1e1e2f; /* Darker techy base */
  padding: 0;
  background: var(--light-bg);
  color: var(--text);
}

/* =========================================================
   HEADER & NAVBAR
========================================================= */
/* Header Container */
header {
  background: linear-gradient(90deg, #0f172a, #1e293b);
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: relative;
  z-index: 10;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 30px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #00eaff;
}

/* Center Logo */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo-center {
  width: 100px;
  height: auto;
  margin-top : 75px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.logo-center:hover {
  transform: translateY(-2px) scale(1.05);
}
.logo-link {
  position: relative;
  display: inline-block;
}

.logo-link::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    #005692 0%,
    #00a8b5 50%,
    #939da6 100%);
  opacity: 0.4;
  filter: blur(20px);
  animation: pulseGlow 4s infinite ease-in-out;
  z-index: -1;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.4;
  }
}


/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* =========================================================
   CONTAINERS & HEADINGS
========================================================= */
.container {
  width: 80%;
  max-width: 1200px;
  margin: 70px auto;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  /* soft shadow */
  background: rgba(255, 255, 255, 0.4);
  /* semi-transparent white */
  backdrop-filter: blur(10px);
  /* blur the background behind */
  -webkit-backdrop-filter: blur(10px);
  /* for Safari */
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* subtle frosted border */
  transition: var(--transition);
  color: #fff;
  /* optional: make text more readable */
}

h1, h2 {
  color: var(--secondary);
  text-align: center;
  margin-bottom: 20px;
}


.animated-gradient {
  background: linear-gradient(120deg,
      #FFFFFF 0%,
      /* dominant white */
      #FFFFFF 25%,
      /* more white */
      #004080 30%,
      /* small deep blue accent */
      #FFFFFF 35%,
      /* blend back to white */
      #00C0C0 45%,
      /* small teal accent */
      #FFFFFF 55%,
      /* back to white */
      #FFFFFF 100%
      /* ends white */
    );
  background-size: 120% 150%;
  animation: gradientShift 140s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* =========================================================
   FORMS
========================================================= */
form {
  margin: 25px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  background: #fff;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  max-width: 900px;
}

form input, form select, form textarea, form button {
  flex: 1 1 180px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

form input:focus, form select:focus, form textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

form button {
  background: var(--secondary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
form button:hover { background: #0056d2; }

.success, .error {
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 500;
}
.success { background: #d4edda; color: #155724; }
.error { background: #f8d7da; color: #721c24; }

/* =========================================================
   GRID & CARDS
========================================================= */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.card {
  position: relative;
  background: #fff; /* maintain light aesthetic */
  border-radius: var(--radius, 12px);
  padding: 20px;
  width: 280px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  color: var(--text, #333);
  z-index: 1;
}

/* Powerful glowing gradient border */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius, 12px);
  padding: 3px;
  background: linear-gradient(135deg, var(--card-color1, #007BFF), var(--card-color2, #28A745));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -2;
  filter: blur(12px); /* powerful glow */
}

.card:hover::after {
  opacity: 1; /* full intensity on hover */
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(0,123,255,0.25), 0 0 20px rgba(0,200,255,0.15);
}


/* Avatar inside card */
.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--card-color1, var(--secondary)), var(--card-color2, var(--accent)));
  margin: 0 auto 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}
.card:hover .avatar { transform: scale(1.1); }

.card h2 {
  color: var(--secondary);
  margin: 10px 0 6px;
  font-size: 18px;
}
.card p {
  color: #555;
  font-size: 14px;
}

/* Card buttons */
.card .btn {
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--secondary);
  color: #fff;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: var(--transition);
}
.card .btn:hover { opacity: 0.85; }
.card .btn-delete { background: #dc3545; }
.card .btn-assign { background: #4bc1b0; }
.card .btn-undelete { background: #17a2b8; }
.card .btn-hard { background: var(--gray); }

/* =========================================================
   BUTTONS & TOGGLES
========================================================= */
.button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0 30px;
}

.toggle-btn {
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: var(--transition);
}
.toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, #00aaff, #007bff);
}
.toggle-btn:active { transform: scale(0.98); }

/* =========================================================
   TABLES
========================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--shadow);
}
th, td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}
th {
  background: var(--secondary);
  color: #fff;
}
tr:nth-child(even) { background: #f9f9f9; }

.status-completed { color: green; font-weight: bold; }
.status-pending { color: orange; font-weight: bold; }

/* =========================================================
   UPLOAD SECTION
========================================================= */
.upload-container {
  width: 600px;
  margin: 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.upload-container h2 { text-align: center; margin-bottom: 20px; }
input[type="file"] { margin-bottom: 15px; }
.upload-container table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.upload-container th, .upload-container td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
.upload-container th { background: var(--secondary); color: #fff; }
.upload-container a { color: var(--secondary); text-decoration: none; }
.upload-container a:hover { text-decoration: underline; }

/* =========================================================
   FEEDBACK / CONTACT
========================================================= */
.feedback-container {
  width: 500px;
  margin: 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feedback-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary);
}
.feedback-container input, .feedback-container textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  transition: var(--transition);
}
.feedback-container input:focus, .feedback-container textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 4px rgba(0,123,255,0.3);
}
.feedback-container button {
  width: 100%;
  padding: 10px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.feedback-container button:hover { background: #0056b3; }

/* =========================================================
   ADMIN SECTION
========================================================= */
.admin-section {
  background: #fff;
  padding: 20px;
  margin: 30px auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 1000px;
}
.admin-section h1 {
  color: var(--secondary);
  margin-bottom: 20px;
}
.admin-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
.admin-section th, .admin-section td {
  border: 1px solid #ddd;
  padding: 8px 10px;
}
.admin-section th { background: var(--secondary); color: #fff; }

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */
@media (max-width: 768px) {
  .container { width: 90%; padding: 15px; }
  .grid { gap: 15px; }
  .card { width: 100%; }
  header nav {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary);
    width: 200px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  header nav.active { max-height: 400px; }
  header nav a { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .menu-toggle { display: flex; }
  .upload-container, .feedback-container { width: 90%; padding: 20px; }
}
