/**
 * Zenith Portal v1.0 - Premium Site-Level Theme for OJS 3.4
 * A futuristic, high-tech portal to showcase multiple journals.
 * Built with Bootstrap 5.3.3
 */

/* ============================================================================
 * 1. CSS VARIABLES & DESIGN TOKENS
 * ============================================================================ */
:root {
  --zp-primary: #3b82f6;
  --zp-primary-light: #60a5fa;
  --zp-primary-dark: #2563eb;
  --zp-accent: #8b5cf6;
  --zp-dark: #0f172a;
  --zp-darker: #020617;
  --zp-card-bg: rgba(30, 41, 59, 0.6);
  --zp-card-bg-hover: rgba(30, 41, 59, 0.85);
  --zp-border: rgba(59, 130, 246, 0.12);
  --zp-border-hover: rgba(59, 130, 246, 0.4);
  --zp-text: #e2e8f0;
  --zp-text-muted: #94a3b8;
  --zp-text-white: #ffffff;
  --zp-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --zp-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --zp-glow: 0 0 25px rgba(59, 130, 246, 0.2);
  --zp-glow-strong: 0 0 40px rgba(59, 130, 246, 0.35);
  --zp-radius: 20px;
  --zp-radius-sm: 12px;
  --zp-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
 * 2. GLOBAL & BODY STYLES
 * ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(ellipse at 20% 50%, #0f172a 0%, #020617 70%);
  color: var(--zp-text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.zp-content-wrapper,
.pkp_structure_page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

a { color: var(--zp-primary-light); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--zp-text-white); }

::selection { background: var(--zp-primary); color: white; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--zp-darker); }
::-webkit-scrollbar-thumb { background: var(--zp-primary-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--zp-primary); }

/* ============================================================================
 * 3. NAVBAR / HEADER
 * ============================================================================ */
.zp-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 0.8rem 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
  transition: var(--zp-transition);
}

.zp-navbar.zp-scrolled {
  background: rgba(2, 6, 23, 0.95);
  border-bottom-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  padding: 0.5rem 0;
}

.zp-navbar .zp-site-brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--zp-primary), var(--zp-primary-light), var(--zp-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none !important;
}

.zp-navbar .zp-site-brand:hover {
  filter: brightness(1.2);
}

.zp-navbar .zp-site-brand img {
  max-height: 40px;
  margin-right: 10px;
}

.zp-nav-link {
  color: var(--zp-text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--zp-radius-sm);
  transition: var(--zp-transition);
}

.zp-nav-link:hover {
  color: var(--zp-text-white) !important;
  background: rgba(59, 130, 246, 0.1);
}

.zp-btn-nav {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  transition: var(--zp-transition);
}

.zp-btn-nav-outline {
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--zp-primary-light);
  background: transparent;
}

.zp-btn-nav-outline:hover {
  border-color: var(--zp-primary);
  background: rgba(59, 130, 246, 0.1);
  color: white;
}

.zp-btn-nav-solid {
  background: linear-gradient(135deg, var(--zp-primary), var(--zp-primary-dark));
  color: white;
  border: none;
}

.zp-btn-nav-solid:hover {
  box-shadow: var(--zp-glow);
  transform: translateY(-1px);
  color: white;
}

/* Mobile toggler & Theme Toggle */
.zp-theme-toggle-btn {
  color: var(--zp-text-muted) !important;
  transition: var(--zp-transition);
  outline: none !important;
  box-shadow: none !important;
}
.zp-theme-toggle-btn:hover {
  color: var(--zp-primary-light) !important;
  transform: rotate(15deg) scale(1.1);
}
.zp-navbar .navbar-toggler {
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.3rem 0.6rem;
}
.zp-navbar .navbar-toggler-icon {
  filter: invert(1);
}

/* Dropdown Menu styling (matching navbar glassmorphism) */
.zp-navbar .dropdown-menu {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.15) !important;
  border-radius: 12px;
  box-shadow: var(--zp-shadow-lg), var(--zp-glow);
  padding: 0.5rem 0;
}
.zp-navbar .dropdown-item {
  color: var(--zp-text) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  transition: var(--zp-transition);
}
.zp-navbar .dropdown-item i {
  color: var(--zp-primary-light);
  transition: var(--zp-transition);
}
.zp-navbar .dropdown-item:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  color: var(--zp-primary-light) !important;
}
.zp-navbar .dropdown-item:hover i {
  color: white;
}
.zp-navbar .dropdown-divider {
  border-color: rgba(59, 130, 246, 0.1) !important;
}

/* Light mode dropdown */
.zp-style-light .zp-navbar .dropdown-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.zp-style-light .zp-navbar .dropdown-item {
  color: #1e293b !important;
}
.zp-style-light .zp-navbar .dropdown-item:hover {
  background: rgba(37, 99, 235, 0.05) !important;
  color: var(--zp-primary) !important;
}

/* ============================================================================ */
/* 4. HERO SECTION */
/* ============================================================================ */
.zp-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--zp-dark) 0%, rgba(2, 6, 23, 0.8) 100%);
}

/* Floating Animated Orbs */
.zp-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.zp-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: zpFloat 8s ease-in-out infinite;
}

.zp-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation: zpFloat 10s ease-in-out infinite reverse;
}

.zp-orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
  top: 40%;
  right: 15%;
  animation: zpFloat 6s ease-in-out infinite 2s;
}

@keyframes zpFloat {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.7; }
  50% { transform: translateY(-35px) scale(1.08); opacity: 1; }
}

/* Grid Lines Background */
.zp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.zp-hero > .container { position: relative; z-index: 2; }

/* Hero Title */
.zp-hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--zp-primary-light) 50%, var(--zp-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  line-height: 1.2;
}

/* Hero Description */
.zp-hero-desc {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--zp-text) !important;
  max-width: 1100px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.zp-hero-desc p {
  color: inherit !important;
  margin-bottom: 0.8rem;
}

.zp-hero-desc p:last-child {
  margin-bottom: 0;
}

/* Counter Badge */
.zp-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.zp-counter-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--zp-primary-light);
}

.zp-counter-label {
  font-size: 0.85rem;
  color: var(--zp-text-muted) !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Search Input */
.zp-search-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

.zp-search-input {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--zp-text) !important;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 50px;
  outline: none;
  backdrop-filter: blur(10px);
  transition: var(--zp-transition);
}

.zp-search-input::placeholder {
  color: var(--zp-text-muted) !important;
}

.zp-search-input:focus {
  border-color: var(--zp-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), var(--zp-glow);
  background: rgba(30, 41, 59, 0.7);
}

/* ============================================================================
 * 5. JOURNALS GRID
 * ============================================================================ */
.zp-journals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
  align-items: start;
}

/* No Results Message */
#zpNoResults {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--zp-text-muted);
  display: none;
}

#zpNoResults i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.5;
}

/* ============================================================================
 * 6. JOURNAL CARD
 * ============================================================================ */
.zp-journal-card {
  background: var(--zp-card-bg);
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--zp-transition);
  display: flex;
  flex-direction: column;
}

.zp-journal-card:hover {
  transform: translateY(-8px);
  border-color: var(--zp-border-hover);
  box-shadow: var(--zp-shadow-lg), var(--zp-glow);
  background: var(--zp-card-bg-hover);
}

/* Card Cover */
.zp-card-cover {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.zp-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.zp-journal-card:hover .zp-card-cover img {
  transform: scale(1.08);
}

.zp-card-cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
  pointer-events: none;
}

/* Cover Placeholder (when no image) */
.zp-card-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--zp-text-muted);
  gap: 0.5rem;
}

.zp-card-cover-placeholder i {
  font-size: 3rem;
  opacity: 0.4;
}

.zp-card-cover-placeholder span {
  font-size: 0.85rem;
  opacity: 0.5;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Card Body */
.zp-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.zp-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  line-height: 1.4;
}

.zp-card-title a {
  color: var(--zp-text-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.zp-card-title a:hover {
  color: var(--zp-primary-light);
}

/* Card Description */
.zp-card-desc {
  font-size: 0.88rem;
  color: var(--zp-text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  text-align: justify;
  flex-grow: 1;
}
.zp-card-desc * {
  font-size: inherit !important;
  color: inherit !important;
  font-family: inherit !important;
  line-height: inherit !important;
  text-align: inherit !important;
}

/* ISSN Badges */
.zp-issn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.zp-issn-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--zp-primary-light);
  border: 1px solid rgba(59, 130, 246, 0.15);
  letter-spacing: 0.3px;
}

/* Card Action Buttons */
.zp-card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}

.zp-btn-primary {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--zp-radius-sm);
  background: linear-gradient(135deg, var(--zp-primary), var(--zp-primary-dark));
  color: white !important;
  border: none;
  text-align: center;
  transition: var(--zp-transition);
  text-decoration: none !important;
}

.zp-btn-primary:hover {
  box-shadow: var(--zp-glow-strong);
  transform: translateY(-2px);
  color: white !important;
}

.zp-btn-outline {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--zp-radius-sm);
  background: transparent;
  color: var(--zp-primary-light) !important;
  border: 1px solid rgba(59, 130, 246, 0.25);
  text-align: center;
  transition: var(--zp-transition);
  text-decoration: none !important;
}

.zp-btn-outline:hover {
  border-color: var(--zp-primary);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: var(--zp-glow);
  color: white !important;
}

/* ============================================================================
 * 7. REVEAL ON SCROLL ANIMATION
 * ============================================================================ */
.zp-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.zp-reveal.zp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
 * 8. FOOTER
 * ============================================================================ */
.zp-footer {
  background: rgba(2, 6, 23, 0.95);
  border-top: 1px solid rgba(59, 130, 246, 0.08);
  padding: 2.5rem 1rem;
  text-align: center;
  margin-top: 3rem;
}

.zp-footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--zp-primary-light), var(--zp-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.zp-footer-text {
  font-size: 0.85rem;
  color: var(--zp-text-muted);
}

.zp-footer-text a {
  color: var(--zp-primary-light);
}

/* ============================================================================
 * 9. SECTION TITLE HEADER
 * ============================================================================ */
.zp-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.zp-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--zp-text-white);
  margin-bottom: 0.5rem;
}

.zp-section-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--zp-primary), var(--zp-accent));
  border-radius: 2px;
  margin: 0 auto;
}

/* ============================================================================
 * 10. UTILITY & HELPERS
 * ============================================================================ */
.zp-glass {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--zp-radius);
}

/* ============================================================================
 * 11. RESPONSIVE DESIGN
 * ============================================================================ */
@media (max-width: 1200px) {
  .zp-journals-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 992px) {
  .zp-hero-title {
    font-size: 2.4rem;
  }

  .zp-hero {
    min-height: 40vh;
    padding: 9rem 1rem 3rem !important;
  }

  .zp-journals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .zp-orb-1 { width: 250px; height: 250px; }
  .zp-orb-2 { width: 200px; height: 200px; }
  .zp-orb-3 { display: none; }
}

@media (max-width: 768px) {
  .zp-hero-title {
    font-size: 1.9rem;
  }

  .zp-hero-desc {
    font-size: 1rem;
  }

  .zp-hero {
    min-height: 35vh;
    padding: 9rem 1rem 2.5rem !important;
  }

  .zp-journals-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .zp-card-cover {
    height: 180px;
  }

  .zp-counter-badge {
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem 1.2rem;
  }

  .zp-counter-number {
    font-size: 1.5rem;
  }

  .zp-card-actions {
    flex-direction: column;
  }

  .zp-navbar .navbar-collapse {
    background: rgba(2, 6, 23, 0.97);
    border-radius: var(--zp-radius-sm);
    margin-top: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
  }

  /* Light mode mobile dropdown background */
  .zp-style-light .zp-navbar .navbar-collapse {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
}

@media (max-width: 991px) {
  .zp-site-title {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    font-size: 1.1rem !important;
  }
}

@media (max-width: 576px) {
  .zp-site-title {
    max-width: 130px;
  }

  .zp-hero-title {
    font-size: 1.6rem;
  }

  .zp-search-input {
    font-size: 0.9rem;
    padding: 0.75rem 1.2rem;
  }

  .zp-card-body {
    padding: 1.2rem;
  }

  .zp-card-title {
    font-size: 1.05rem;
  }
}

/* ============================================================================
 * 11.5. MODAL STYLES
 * ============================================================================ */
.zp-modal .modal-content {
  background: var(--zp-card-bg) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--zp-radius) !important;
  box-shadow: var(--zp-shadow-lg) !important;
  color: var(--zp-text-white) !important;
}

.zp-modal .modal-header {
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.zp-modal .modal-title {
  font-weight: 700;
  color: var(--zp-text-white);
}

.zp-modal .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.zp-modal .modal-footer {
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.zp-style-light .zp-modal .modal-content {
  background: var(--zp-card-bg-hover);
}
.zp-style-light .zp-modal .btn-close {
  filter: none;
}
.zp-style-light .zp-modal .modal-title {
  color: var(--zp-text-white);
}

/* Form controls in modal */
.zp-modal .form-control {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--zp-text-white);
}
.zp-modal .form-control:focus {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--zp-primary);
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
  color: var(--zp-text-white);
}
.zp-style-light .zp-modal .form-control {
  background: #ffffff;
  color: #0f172a;
}
.zp-style-light .zp-modal .form-control:focus {
  color: #0f172a;
}

/* ============================================================================
 * 12. OJS CORE FORMS & INNER PAGES (HIGH-TECH OVERRIDES)
 * ============================================================================ */
.zp-inner-page {
  background: var(--zp-card-bg) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--zp-shadow-lg) !important;
  color: var(--zp-text-white) !important;
}

.zp-inner-page .cmp_breadcrumbs {
  display: none !important;
}

.zp-inner-page h1, 
.zp-inner-page h2, 
.zp-inner-page h3, 
.zp-inner-page legend {
  color: var(--zp-text-white) !important;
  font-weight: 700;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.zp-inner-page .label {
  color: var(--zp-text-muted) !important;
  font-weight: 500;
}

/* OJS Forms High-Tech Styling */
.cmp_form input[type="text"],
.cmp_form input[type="password"],
.cmp_form input[type="email"],
.cmp_form select,
.cmp_form textarea,
.pkp_form input[type="text"],
.pkp_form input[type="password"],
.pkp_form input[type="email"],
.pkp_form select,
.pkp_form textarea {
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  color: var(--zp-text-white) !important;
  border-radius: 8px;
  padding: 10px 15px;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cmp_form input:focus,
.cmp_form select:focus,
.cmp_form textarea:focus,
.pkp_form input:focus,
.pkp_form select:focus,
.pkp_form textarea:focus {
  background: rgba(30, 41, 59, 0.9) !important;
  border-color: var(--zp-primary) !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4) !important;
  outline: none !important;
}

/* Password Toggle UI */
.input-group {
  display: flex !important;
  flex-wrap: nowrap !important;
}
.zp-password-input {
  border-right: none !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  width: auto !important;
  flex: 1 1 auto !important;
}
.zp-password-toggle {
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  border-left: none !important;
  color: var(--zp-text-muted) !important;
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 15px !important;
  white-space: nowrap !important;
}
.zp-password-toggle:hover {
  background: rgba(30, 41, 59, 0.9) !important;
  color: var(--zp-text-white) !important;
}
.zp-password-input:focus + .zp-password-toggle {
  border-color: var(--zp-primary) !important;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 15px rgba(59, 130, 246, 0.4) !important;
}

/* Indexing Badges UI */
.zp-card-indexing-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0.5rem !important;
}

@media (max-width: 576px) {
  .zp-card-indexing-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.zp-index-logo-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 6px !important;
  padding: 4px !important;
  height: 36px !important;
  width: 100% !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
}

.zp-index-logo-wrapper img {
  max-height: 24px !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

.zp-index-logo-wrapper:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2) !important;
  border-color: var(--zp-primary-light) !important;
  background: #ffffff !important;
}


/* Form Buttons */
.cmp_form button.submit,
.pkp_form button.submit {
  background: linear-gradient(135deg, var(--zp-primary), var(--zp-primary-dark)) !important;
  border: none !important;
  color: white !important;
  padding: 12px 25px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
  margin-top: 20px;
}

.cmp_form button.submit:hover,
.pkp_form button.submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6) !important;
}

/* Checkboxes and descriptions */
.cmp_form .checkbox, .pkp_form .checkbox {
  margin-top: 10px;
}
.cmp_form .description, .pkp_form .description {
  color: var(--zp-text-muted) !important;
  font-size: 0.9rem;
}

/* Links in forms */
.cmp_form a, .pkp_form a {
  color: var(--zp-primary-light) !important;
  text-decoration: none;
  font-weight: 500;
}
.cmp_form a:hover, .pkp_form a:hover {
  color: var(--zp-text-white) !important;
  text-decoration: underline;
}

/* Light Mode Overrides for Forms */
.zp-style-light .zp-inner-page {
  background: var(--zp-card-bg-hover) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
  color: var(--zp-text) !important;
}
.zp-style-light .zp-inner-page h1, 
.zp-style-light .zp-inner-page h2, 
.zp-style-light .zp-inner-page h3, 
.zp-style-light .zp-inner-page legend {
  color: #1e293b !important;
  border-color: rgba(59, 130, 246, 0.1);
}
.zp-style-light .zp-inner-page .label {
  color: #475569 !important;
}
.zp-style-light .cmp_form input[type="text"],
.zp-style-light .cmp_form input[type="password"],
.zp-style-light .cmp_form input[type="email"],
.zp-style-light .cmp_form select,
.zp-style-light .cmp_form textarea,
.zp-style-light .pkp_form input[type="text"],
.zp-style-light .pkp_form input[type="password"],
.zp-style-light .pkp_form input[type="email"],
.zp-style-light .pkp_form select,
.zp-style-light .pkp_form textarea {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}
.zp-style-light .cmp_form input:focus,
.zp-style-light .cmp_form select:focus,
.zp-style-light .cmp_form textarea:focus,
.zp-style-light .pkp_form input:focus,
.zp-style-light .pkp_form select:focus,
.zp-style-light .pkp_form textarea:focus {
  background: #ffffff !important;
  border-color: var(--zp-primary) !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15) !important;
}

/* Light mode for password toggle */
.zp-style-light .zp-password-toggle {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}
.zp-style-light .zp-password-toggle:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}
.zp-style-light .zp-password-input:focus + .zp-password-toggle {
  border-color: var(--zp-primary) !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15) !important;
}

/* 2-Column Grid Layout for Register Profile and Login sections */
.cmp_form fieldset.identity .fields,
.cmp_form fieldset.login .fields,
.pkp_form fieldset.identity .fields,
.pkp_form fieldset.login .fields {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cmp_form fieldset.identity .fields > div,
.cmp_form fieldset.login .fields > div,
.pkp_form fieldset.identity .fields > div,
.pkp_form fieldset.login .fields > div {
  width: 100% !important;
  float: none !important;
  margin-bottom: 0 !important;
}
@media (max-width: 768px) {
  .cmp_form fieldset.identity .fields,
  .cmp_form fieldset.login .fields,
  .pkp_form fieldset.identity .fields,
  .pkp_form fieldset.login .fields {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ============================================================================
 * 13. PRINT STYLES
 * ============================================================================ */
@media print {
  .zp-navbar, .zp-hero, .zp-orb, .zp-search-wrapper, .zp-footer { display: none !important; }
  body { background: white; color: black; }
  .zp-journal-card { border: 1px solid #ccc; break-inside: avoid; }
}

/* ============================================================================
 * 13. LIGHT MODE OVERRIDES
 * ============================================================================ */
.zp-style-light {
  --zp-primary: #2563eb;
  --zp-primary-light: #3b82f6;
  --zp-primary-dark: #1d4ed8;
  --zp-dark: #f8fafc;
  --zp-darker: #f1f5f9;
  --zp-card-bg: rgba(255, 255, 255, 0.85);
  --zp-card-bg-hover: rgba(255, 255, 255, 1);
  --zp-border: rgba(59, 130, 246, 0.15);
  --zp-border-hover: rgba(59, 130, 246, 0.4);
  --zp-text: #334155;
  --zp-text-muted: #64748b;
  --zp-text-white: #0f172a;
  --zp-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  --zp-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --zp-glow: 0 0 25px rgba(59, 130, 246, 0.15);
  --zp-glow-strong: 0 0 40px rgba(59, 130, 246, 0.25);
  background: radial-gradient(ellipse at 20% 50%, #f8fafc 0%, #f1f5f9 70%);
}

.zp-style-light .zp-navbar {
  background: rgba(248, 250, 252, 0.8);
  border-bottom-color: rgba(59, 130, 246, 0.1);
}

.zp-style-light .zp-navbar.zp-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.zp-style-light .zp-hero {
  background: linear-gradient(180deg, #f8fafc 0%, rgba(241, 245, 249, 0.9) 100%);
}

.zp-style-light .zp-hero::before {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
}

.zp-style-light .zp-hero-title {
  background: linear-gradient(135deg, #0f172a 0%, var(--zp-primary-dark) 50%, var(--zp-accent) 100%);
  -webkit-background-clip: text;
}

.zp-style-light .zp-hero-desc {
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.zp-style-light .zp-search-input {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(59, 130, 246, 0.2);
  color: #0f172a;
}

.zp-style-light .zp-search-input:focus {
  background: rgba(255, 255, 255, 0.9);
}

.zp-style-light .zp-card-title a {
  color: #0f172a;
}

.zp-style-light .zp-card-title a:hover {
  color: var(--zp-primary);
}

.zp-style-light .zp-footer {
  background: rgba(241, 245, 249, 0.95);
  border-top-color: rgba(59, 130, 246, 0.15);
}

.zp-style-light .zp-footer-text, .zp-style-light .zp-footer-text p {
  color: #64748b !important;
}

.zp-style-light .zp-card-cover-placeholder {
  color: #475569;
}
.zp-style-light .zp-card-cover {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.zp-style-light .zp-card-cover-overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, transparent 100%);
}

.zp-style-light .zp-nav-link {
  color: #475569 !important;
}
.zp-style-light .zp-nav-link:hover {
  color: #0f172a !important;
  background: rgba(59, 130, 246, 0.1);
}
.zp-style-light .navbar-toggler-icon {
  filter: none;
}

/* ============================================================================
 * 14. STANDALONE LOGIN PAGE OVERRIDES
 * ============================================================================ */
.zp-login-page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  width: 100%;
}

.zp-login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--zp-shadow-lg), var(--zp-glow);
}

.zp-login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.zp-login-logo {
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.zp-login-logo-placeholder {
  font-size: 3.5rem;
  color: var(--zp-primary-light);
  margin-bottom: 1rem;
  line-height: 1;
}

.zp-login-title {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 0.25rem !important;
  border: none !important;
  padding: 0 !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.zp-login-subtitle {
  font-size: 0.85rem;
  color: var(--zp-text-muted) !important;
  margin-bottom: 0 !important;
}

.zp-login-error {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #f87171 !important;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 500;
}

/* Form resets within card */
.zp-login-card form#login {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
}

.zp-login-card form#login .fields {
  display: block !important;
}

/* Inputs styling */
.zp-login-card .form-control {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  color: var(--zp-text) !important;
  padding: 10px 15px !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
}

.zp-login-card .form-control:focus {
  border-color: var(--zp-primary) !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.45) !important;
  background: rgba(15, 23, 42, 0.8) !important;
}

/* Password Toggle */
.zp-login-card .zp-password-input {
  border-right: none !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-top-left-radius: 10px !important;
  border-bottom-left-radius: 10px !important;
}

.zp-login-card .zp-password-toggle {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  border-left: none !important;
  color: var(--zp-text-muted) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 15px !important;
}

.zp-login-card .zp-password-toggle:hover {
  background: rgba(15, 23, 42, 0.8) !important;
  color: #ffffff !important;
}

.zp-login-card .zp-password-input:focus + .zp-password-toggle {
  border-color: var(--zp-primary) !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.45) !important;
}

/* Light Mode Overrides */
.zp-style-light .zp-login-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(59, 130, 246, 0.15) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.zp-style-light .zp-login-title {
  color: #0f172a !important;
}

.zp-style-light .zp-login-card .form-control {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.zp-style-light .zp-login-card .form-control:focus {
  border-color: var(--zp-primary) !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15) !important;
}

.zp-style-light .zp-login-card .zp-password-toggle {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  border-left: none !important;
  color: #475569 !important;
}

.zp-style-light .zp-login-card .zp-password-toggle:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.zp-style-light .zp-login-error {
  background: #fef2f2 !important;
  border-color: #fee2e2 !important;
  color: #991b1b !important;
}

/* End of zenith-portal.css */
