* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  color: #195730;
  margin-bottom: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header .container {
  padding: 0 10px;
}

/* Header */
header {
  background: linear-gradient(135deg, #195730, #2d8a4e);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  flex: 1;
  margin-left: -10px;
}

.logo-image {
  height: 80px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
}

.logo h1 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.logo p {
  color: #fbbf24;
  font-size: 0.9rem;
  font-style: italic;
}

/* Header Auth Styles */
.header-auth {
  display: flex;
  align-items: center;
}

.auth-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-auth {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.btn-auth {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-auth:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-register {
  background: #fbbf24;
  color: #195730;
  border-color: #fbbf24;
}

.btn-register:hover {
  background: #f59e0b;
  border-color: #f59e0b;
}

/* Profile Dropdown */
.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-icon {
  cursor: pointer;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fbbf24;
  color: #195730;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.profile-avatar:hover {
  background: #f59e0b;
  transform: scale(1.05);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  border-radius: 6px;
  z-index: 1;
  border: 1px solid #e5e7eb;
}

.dropdown-content a {
  color: #195730;
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: #f8fafc;
}

.dropdown-content a:first-child {
  border-radius: 6px 6px 0 0;
}

.dropdown-content a:last-child {
  border-radius: 0 0 6px 6px;
}

.show {
  display: block;
}

/* Navigation */
nav {
  background-color: #1a6b35;
  padding: 0.75rem 0;
  border-bottom: 3px solid #fbbf24;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
  position: relative;
  border-bottom: 3px solid transparent;
}

.nav-menu a:hover {
  background-color: #195730;
  border-bottom-color: #fbbf24;
}

/* Active nav link styling */
.nav-menu a.active {
  background-color: #0f4620;
  font-weight: 600;
}

/* Main Content */
main {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.hero {
  background: white;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #195730;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #195730;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s;
  font-weight: 600;
}

.btn:hover {
  background-color: #1a6b35;
}

.btn-secondary {
  background-color: #fbbf24;
  color: #195730;
}

.btn-secondary:hover {
  background-color: #f59e0b;
}

/* Content Sections */
.content-section {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.info-card {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 6px;
  border-left: 4px solid #fbbf24;
}

.info-card h3 {
  color: #195730;
  margin-bottom: 0.5rem;
}

/* Articles */
.article-card {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.3s;
}

.article-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-title {
  color: #195730;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.article-authors {
  color: #666;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.article-abstract {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* Editorial Board */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.board-member {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.board-member h3 {
  color: #195730;
  margin-bottom: 0.5rem;
}

.board-member .designation {
  color: #fbbf24;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.editor-in-chief {
  background: linear-gradient(135deg, #195730, #2d8a4e);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.editor-in-chief h3 {
  color: white;
  font-size: 1.5rem;
}

.editor-in-chief .designation {
  color: #fbbf24;
  font-size: 1.1rem;
}

.advisory-member {
  border-left: 4px solid #10b981;
}

.advisory-member .designation {
  color: #10b981;
}

/* Guidelines */
.guidelines {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 6px;
  border-left: 4px solid #195730;
}

.guidelines h3 {
  color: #195730;
  margin-bottom: 1rem;
}

.guidelines ul {
  list-style-position: inside;
  margin-left: 1rem;
}

.guidelines li {
  margin-bottom: 0.5rem;
  color: #555;
}

/* Footer */
footer {
  background-color: #195730;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-section h4 {
  color: #fbbf24;
  margin-bottom: 1rem;
}

.footer-section a {
  color: white;
  text-decoration: none;
}

.footer-section a:hover {
  color: #fbbf24;
}

.search-section {
  background: white;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-box {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
}

.search-box:focus {
  outline: none;
  border-color: #195730;
}

/* Authentication Styles */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 2rem 0;
}

.auth-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

.auth-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #195730;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #195730;
}

.form-group small {
  color: #666;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
  margin-top: 1rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid #195730;
  color: #195730;
}

.btn-outline:hover {
  background: #195730;
  color: white;
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.auth-links p {
  margin-bottom: 0.5rem;
}

.auth-links a {
  color: #195730;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.alert {
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.alert-error {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Review Styles */
.review-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e7eb;
}

.review-section h4 {
  color: #195730;
  margin-bottom: 1rem;
}

.review-section h5 {
  color: #195730;
  margin: 1.5rem 0 0.5rem 0;
}

.reviews-container {
  margin-bottom: 1.5rem;
}

.review-item {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 3px solid #fbbf24;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rating {
  color: #fbbf24;
  font-size: 1.1rem;
}

.review-date {
  color: #666;
  font-size: 0.875rem;
}

.review-comment {
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.no-reviews {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 6px;
}

.review-form {
  background: #f1f5f9;
  padding: 1.5rem;
  border-radius: 6px;
  margin-top: 1rem;
}

.review-form .form-group {
  margin-bottom: 1rem;
}

.review-form select,
.review-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
}

.review-form select:focus,
.review-form textarea:focus {
  outline: none;
  border-color: #195730;
}

/* Dashboard Styles */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-actions {
  display: flex;
  gap: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.dashboard-card {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.dashboard-card h3 {
  color: #195730;
  margin-bottom: 1rem;
}

.dashboard-card ul {
  list-style: none;
  padding: 0;
}

.dashboard-card li {
  margin-bottom: 0.5rem;
}

.dashboard-card a {
  color: #195730;
  text-decoration: none;
}

.dashboard-card a:hover {
  text-decoration: underline;
}

/* Admin Navigation Styles */
.website-btn:hover {
  color: #45a049 !important;
  text-decoration: underline !important;
}

.admin-panel-link {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  padding: 5px 12px;
  border-radius: 5px;
  color: white !important;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.admin-panel-link:hover {
  background: linear-gradient(135deg, #f7931e, #ff6b35);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* Manuscript Status Timeline - Green Theme */
.manuscript-status-container {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.manuscript-status-timeline {
  position: relative;
  padding-left: 40px;
  margin: 20px 0;
}

.manuscript-status-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #10b981, #059669);
  border-radius: 3px;
}

.status-step {
  position: relative;
  padding: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.status-step:last-child {
  padding-bottom: 0;
}

.status-icon {
  position: absolute;
  left: -40px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  z-index: 1;
  transition: all 0.3s ease;
}

.status-icon.pending {
  background: #e5e7eb;
  color: #9ca3af;
  border: 3px solid #d1d5db;
}

.status-icon.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: 3px solid #34d399;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulse-green 2s infinite;
}

.status-icon.completed {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: 3px solid #10b981;
}

.status-icon.rejected {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: 3px solid #f87171;
}

.status-icon.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: 3px solid #fbbf24;
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.1);
  }
}

.status-content {
  flex: 1;
  padding: 15px 20px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #10b981;
  transition: all 0.3s ease;
}

.status-content.pending {
  border-left-color: #d1d5db;
  opacity: 0.6;
}

.status-content.active {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-left-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.status-content.completed {
  background: #f0fdf4;
  border-left-color: #10b981;
}

.status-content.rejected {
  background: #fef2f2;
  border-left-color: #ef4444;
}

.status-content.warning {
  background: #fffbeb;
  border-left-color: #f59e0b;
}

.status-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #195730;
  margin-bottom: 5px;
}

.status-title.completed {
  color: #059669;
}

.status-title.rejected {
  color: #dc2626;
}

.status-description {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

.status-date {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 8px;
}

/* Manuscript Card Status Badge */
.manuscript-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.manuscript-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.manuscript-card.submitted-success {
  border-left: 5px solid #10b981;
  background: linear-gradient(90deg, #f0fdf4 0%, white 10%);
}

.manuscript-card.in-process {
  border-left: 5px solid #3b82f6;
  background: linear-gradient(90deg, #eff6ff 0%, white 10%);
}

.manuscript-card.rejected {
  border-left: 5px solid #ef4444;
  background: linear-gradient(90deg, #fef2f2 0%, white 10%);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.submitted {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.status-badge.under-review {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.status-badge.accepted {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.status-badge.payment-pending {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.status-badge.payment-review {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.status-badge.payment-confirmed {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.status-badge.in-progress {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
}

.status-badge.completed {
  background: linear-gradient(135deg, #10b981, #047857);
  color: white;
}

.status-badge.rejected {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.status-badge-icon {
  font-size: 0.9rem;
}

/* Payment Action Button */
.btn-payment {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-payment:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Manuscript Details Section */
.manuscript-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.manuscript-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.manuscript-detail-label {
  font-size: 0.8rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.manuscript-detail-value {
  font-size: 0.95rem;
  color: #374151;
  font-weight: 500;
}

/* Final Responsive Design */
@media (max-width: 768px) {
  .nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .admin-panel-link {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
  
  .manuscript-status-timeline {
    padding-left: 30px;
  }
  
  .status-icon {
    left: -30px;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .status-content {
    padding: 12px 15px;
  }
  
  .manuscript-details {
    grid-template-columns: 1fr;
  }
}