/* --- Global Styles & Variables (From your theme) --- */
:root {
  --primary-bg: #02141f;
  --secondary-bg: #111827;
  --accent-color: #00b4d8;
  --text-color: #f4f4f4;
  --white-color: #ffffff;
  --approve-color: #28a745;
  --reject-color: #dc3545;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background-color: var(--primary-bg);
  color: var(--text-color);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.body-no-scroll {
  overflow: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
h2 {
  font-size: 2.8rem;
  text-align: center;
  color: var(--white-color);
  margin-bottom: 50px;
}
h3 {
  font-size: 1.4rem;
  color: var(--white-color);
  margin-bottom: 15px;
  font-weight: 600;
}
p {
  color: var(--text-color);
  opacity: 0.9;
}
a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color 0.3s ease;
}
a:hover {
  color: #4ecce3;
}

/* --- Navbar --- */
.navbar {
  background: rgba(2, 18, 31, 0.7);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar .logo img {
  height: 50px;
  border-radius: 50%;
}
.navbar nav ul {
  display: flex;
  list-style: none;
  gap: 30px; /* From old CSS */
  align-items: center;
}
.navbar nav ul li a {
  text-decoration: none;
  color: #b4cfd4; /* From old CSS */
  font-weight: 500;
  transition: all 0.3s ease;
}
.navbar nav ul li a:hover {
  color: #ffffff; /* From old CSS */
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* --- Action Buttons (from old CSS) --- */
.nav-actions {
  display: flex;
  gap: 15px;
}
.btn {
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background-color: #55eff7;
  color: black !important;
}
.btn-primary:hover {
  background-color: #46e1ef;
  box-shadow: 0 0 20px rgba(70, 239, 230, 0.6);
  transform: translateY(-2px);
  color: #ffffff !important; /* Adjusted for better contrast */
}
.btn-secondary {
  background-color: transparent;
  color: #55eff7;
  border: 2px solid #55eff7;
}
.btn-secondary:hover {
  background-color: #55eff7;
  color: #0d021f; /* Adjusted for better contrast */
  transform: translateY(-2px);
}
.user-name-display {
  font-weight: 600;
  color: var(--accent-color);
  padding-left: 1rem;
}

/* --- NEW Hamburger Menu Styles --- */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.hamburger-menu .bar {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--white-color);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}
.hamburger-menu.is-active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger-menu.is-active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.is-active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* --- Footer --- */
.footer {
  background: var(--secondary-bg);
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Publications Page Layout --- */
.publications-section {
  padding: 60px 0 80px;
  background: var(--secondary-bg);
}
.publications-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}
.publication-feed {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.publication-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-self: start;
}
.publication-card {
  background: rgba(17, 24, 39, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(173, 230, 243, 0.1);
  padding: 30px;
  transition: all 0.3s ease;
}
.publication-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 180, 216, 0.4);
  box-shadow: 0 10px 30px rgba(0, 180, 216, 0.1);
}
.author-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.author-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
}
.author-info h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--white-color);
}
.meta-info {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 15px;
}
.publication-card h3 a {
  color: var(--white-color);
}
.excerpt {
    margin-bottom: 20px;
    opacity: 0.8;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    transition: -webkit-line-clamp 0.3s ease;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}
.excerpt.expanded {
  -webkit-line-clamp: unset; /* Show all lines */
}
.read-more-btn {
  font-weight: 600;
  display: inline-block;
  cursor: pointer;
}
.read-more-btn i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}
.read-more-btn:hover i {
  transform: translateX(5px);
}
.action-card {
  background: rgba(173, 230, 243, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(173, 230, 243, 0.2);
  padding: 25px;
  display: flex;
  flex-direction: column;
}
.action-card h3 {
  color: var(--accent-color);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.action-card p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 20px;
}
.title-input,
.action-card textarea {
  width: 100%;
  background-color: rgba(0, 109, 119, 0.3);
  border: 1px solid rgba(173, 230, 243, 0.3);
  border-radius: 8px;
  color: var(--white-color);
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  outline: none;
  padding: 15px;
  margin-bottom: 15px;
  resize: vertical;
  transition: all 0.3s ease;
}
.title-input {
  min-height: auto;
}
.action-card textarea {
  min-height: 150px;
}
.title-input:focus,
.action-card textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.5);
}
.action-btn {
  background-color: var(--accent-color);
  color: var(--white-color);
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 180, 216, 0.2);
  transition: all 0.3s ease;
}
.action-btn:hover {
  background-color: #4ecce3;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
}
.file-input {
  display: none;
}
.upload-btn {
  background-color: rgba(0, 180, 216, 0.15);
  border: 2px dashed rgba(0, 180, 216, 0.4);
  color: var(--accent-color);
  padding: 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}
.upload-btn:hover {
  background-color: rgba(0, 180, 216, 0.25);
  border-color: var(--accent-color);
}
.upload-btn i {
  font-size: 1.2rem;
}

/* --- Admin Panel Section --- */
.admin-panel-section {
  padding: 60px 0 80px;
  background: var(--secondary-bg);
  min-height: calc(100vh - 150px);
}
.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: -10px auto 50px;
  opacity: 0.8;
}
.submission-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.submission-card {
  background: rgba(17, 24, 39, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(173, 230, 243, 0.1);
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  align-items: center;
  transition: all 0.3s ease;
}
.submission-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 180, 26, 0.4);
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.08);
}
.author-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 15px;
}
.author-details i {
  margin-right: 8px;
  color: var(--accent-color);
}
.article-preview {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.8;
  overflow-wrap: break-word;
  word-break: break-all;
}
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.btn {
  padding: 10px 20px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.btn i {
  font-size: 0.9rem;
}
.approve-btn {
  background-color: var(--approve-color);
  color: var(--white-color);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}
.approve-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}
.reject-btn {
  background-color: rgba(220, 53, 69, 0.2);
  color: var(--reject-color);
  border: 1px solid var(--reject-color);
}
.reject-btn:hover {
  background-color: var(--reject-color);
  color: var(--white-color);
}

/* 
===============================================
--- RESPONSIVE DESIGN ---
===============================================
*/
@media (max-width: 992px) {
  .hamburger-menu {
    display: flex;
  }
  .navbar nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: var(--secondary-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease-in-out;
    padding: 2rem;
    z-index: 1000;
  }
  .navbar nav ul.is-active {
    right: 0;
  }
  .navbar nav ul li {
    width: 100%;
    text-align: center;
  }
  .navbar nav ul li a {
    font-size: 1.2rem;
  }
  .publications-layout {
    grid-template-columns: 1fr;
  }
  .publication-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .submission-card {
    grid-template-columns: 1fr;
  }
  .action-buttons {
    flex-direction: row;
    justify-content: flex-end;
  }
}
@media (max-width: 480px) {
  h2 {
    font-size: 2.2rem;
  }
  .action-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}

