Common Styles for All Pages
:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --secondary: #10b981;
  --accent: #f97316;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  background: transparent;
}

@keyframes gradientShift {
  0% { background: linear-gradient(to right, #2c2c54, #713ABE, #2c2c54); }
  50% { background: linear-gradient(to right, #2c2c54, #854cc7, #2c2c54); }
  100% { background: linear-gradient(to right, #2c2c54, #713ABE, #2c2c54); }
}

body {
  animation: gradientShift 12s infinite alternate ease-in-out;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: white;
  line-height: 1.6;
  -ms-overflow-style: none;
  padding-top: 90px;
  overflow-x: hidden;
}

.banner {
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 50px;
  background: transparent;
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 80px;
  width: auto;
}

.navbar ul {
  display: flex;
  list-style: none;
}

.navbar ul li {
  margin: 0 25px;
  position: relative;
}

.navbar ul li a {
  text-decoration: none;
  color: #FFFFFF;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 500;
}

.navbar ul li::after {
  content: '';
  height: 2.5px;
  width: 0;
  background: #031946;
  position: absolute;
  left: 0;
  bottom: -2px;
  transition: 0.5s;
}

.navbar ul li:hover::after {
  width: 100%;
}

h1 {
  margin-top: 150px;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #031946;
  margin-bottom: 2rem;
}

input[type="text"],
input[type="file"] {
  display: block;
  width: 70%;
  padding: 12px 16px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--card-bg);
  margin-left: 220px;
  color: black;
}

input[type="file"] {
  padding: 10px;
  border: 2px dashed var(--primary);
  cursor: pointer;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

input[type="file"]:hover {
  border-color: var(--primary-hover);
  background-color: rgba(59, 130, 246, 0.05);
}

/* Button Styling */
button {
  background-color: #031946; /* Purple background for buttons */
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 10px;
  margin-left: 680px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #5b4db2; /* Darker shade for hover */
}

button:active {
  transform: translateY(0);
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s ease-out forwards;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

#pendingFiles,
#approvedFiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Styling for Pending Files Section */
#pendingFiles {
  margin: 30px 0;
}

#pendingFiles div {
  background-color: #29296f;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

#pendingFiles a {
  color: #c79ff5;
  text-decoration: none;
}

#pendingFiles a:hover {
  text-decoration: underline;
}

/* Styling for Admin Panel Title */
h1 {
  color: #f6f3f9;
  font-size: 2.5rem;
}

/* Optional: Styling for Approved Files Section */
#approvedFiles {
  margin-top: 40px;
}

#approvedFiles div {
  background-color: #29296f;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

#approvedFiles a {
  color: #6C63FF;
  text-decoration: none;
}

#approvedFiles a:hover {
  text-decoration: underline;
}

.status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
}

#status {
  margin-top: 1rem;
  padding: 12px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
  display: none;
}

.status.success,
#status.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

.status.error,
#status.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid #ef4444;
}

#status.loading {
  display: block;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--pending);
  background-color: #fef3c7;
  color: #d97706;
}

.badge.approved {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  background-color: #d1fae5;
  color: #059669;
}

.badge.rejected {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  background-color: #fee2e2;
  color: #dc2626;
}

.file-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.search-container {
  margin-bottom: 2rem;
  position: relative;
}

.search-container input {
  padding-left: 2.5rem;
}

#searchInput {
  width: 70%;
  padding: 12px 20px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  margin-left: 200px;
}

#searchInput:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.like-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #9ca3af;
  transition: all 0.3s ease;
  padding: 5px;
  margin-top: 0.5rem;
  width: auto;
  display: inline-block;
}

.like-btn:hover {
  transform: scale(1.2);
  color: #ef4444;
  background: none;
  box-shadow: none;
}

.like-btn.liked {
  color: #ef4444;
}

.file-meta {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.file-meta > * {
  margin-right: 1rem;
}

.approve-btn,
.reject-btn {
  display: inline-block;
  width: auto;
  padding: 8px 16px;
  margin-right: 10px;
  margin-top: 10px;
  font-size: 0.875rem;
}

.approve-btn {
  background-color: var(--secondary);
}

.approve-btn:hover {
  background-color: #059669;
}

.reject-btn {
  background-color: #ef4444;
}

.reject-btn:hover {
  background-color: #dc2626;
}

footer {
  background-color: var(--card-bg);
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  color: var(--text-light);
}

@media (max-width: 768px) {
  body {
      padding: 15px;
  }
  .container {
      padding: 1rem;
  }

  .file-grid,
  #pendingFiles,
  #approvedFiles {
      grid-template-columns: 1fr;
  }

  .header-content {
      flex-direction: column;
      gap: 1rem;
  }

  .nav-links {
      width: 100%;
      justify-content: center;
  }

  h1 {
      font-size: 1.5rem;
  }
}

/* CSS Loader Animation */
.loader {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}

.loading-container {
  text-align: center;
  padding: 2rem;
}

/* File Upload Animation */
@keyframes upload-pulse {
  0% {
      box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  70% {
      box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
      box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.uploading {
  animation: upload-pulse 1.5s infinite;
}

/* Card Entrance Animation */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

input[type="file"]::file-selector-button {
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  background-color: var(--primary);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 15px;
}

input[type="file"]::file-selector-button:hover {
  background-color: var(--primary-hover);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

/* Common Styles for All Pages */
:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --secondary: #10b981;
  --accent: #f97316;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  background: transparent;
}

@keyframes gradientShift {
  0% { background: linear-gradient(to right, #2c2c54, #713ABE, #2c2c54); }
  50% { background: linear-gradient(to right, #2c2c54, #854cc7, #2c2c54); }
  100% { background: linear-gradient(to right, #2c2c54, #713ABE, #2c2c54); }
}

body {
  animation: gradientShift 12s infinite alternate ease-in-out;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: white;
  line-height: 1.6;
  -ms-overflow-style: none;
  padding-top: 90px;
  overflow-x: hidden;
}

.banner {
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
}


.navbar {
  border: 1.4px solid rgba(0, 0, 0, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 50px;
  background: linear-gradient(to right, #5e5e8f, #c79ff5, #5e5e8f);
  transition: all 0.3s ease;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Soft shadow only on the upper side */
}

.navbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8); 
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 80px;
  width: auto;
}

.navbar ul {
  display: flex;
  list-style: none;
  margin-left: 55px;
}

.navbar ul li {
  list-style: none;
  display: inline-block;
  margin: 0 15px;
  position: relative;
}

.navbar ul li a {
  text-decoration: none;
  color: #031946;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.navbar ul li a i {
  margin-right: 8px; /* Space between icon and text */
}

.navbar ul li::after {
  content: '';
  height: 2.5px;
  width: 0;
  background: #031946;
  position: absolute;
  left: 0;
  bottom: -2px;
  transition: 0.5s;
}

.navbar ul li:hover::after {
  width: 100%;
}