/**
 * Main CSS Stylesheet
 * Review of Public Policy and Social Systems Journal
 * Clean Academic Design - Responsive, Mobile-First
 */

/* ============================================
   CSS Variables & General Styles
   ============================================ */

:root {
    --primary-color: #1a3a52;
    --secondary-color: #2c5aa0;
    --accent-color: #d4a574;
    --text-dark: #2c3e50;
    --text-light: #555;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    
    --font-serif: 'Lora', serif;
    --font-sans: 'Open Sans', sans-serif;
    
    --spacing-unit: 1rem;
    --max-width: 1550px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, rgba(26,58,82,0.95) 0%, rgba(44,90,160,0.95) 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 750px;
    height: 750px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.40), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-section h1 {
color: var(--accent-color);
    font-size: 3rem;
    max-width: 900px;
    margin: 0 auto 1.25rem;
    line-height: 1.1;
}

.hero-section p {
    max-width: 760px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn {
    min-width: 220px;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

/* Card styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.09);
}

.card h3,
.card h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.card p {
    color: rgba(44,58,82,0.8);
}

.card .card-meta {
    font-size: 0.9rem;
    color: rgba(0,0,0,0.6);
    margin-bottom: 1rem;
}

.card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.card .card-link:hover {
    text-decoration: underline;
}

/* Fade-in animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Highlight stats */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}

.stat-card h3 {
    margin: 0;
    font-size: 2.2rem;
    color: var(--accent-color);
}

.stat-card p {
    margin: 0.75rem 0 0;
    color: rgba(44,58,82,0.75);
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-unit) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 1;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-family: var(--font-serif);
}

.site-logo-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo-link:hover {
    opacity: 0.9;
}

.journal-name {
    font-weight: 600;
    font-size: 1.2rem;
}

.journal-abbrev {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-sans);
}

.tagline {
    font-size: 0.75rem;
    color: #ccc;
    margin: 0.25rem 0 0 0;
    font-style: italic;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Main Navigation */
.main-navigation {
    margin-left: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    color: white;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.nav-item > a:hover {
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
}

.nav-item.active > a {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-color);
    list-style: none;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background-color: rgba(0,0,0,0.1);
    color: white;
    text-decoration: none;
}

/* ============================================
   Main Content Area
   ============================================ */

.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0px 10px 0px 10px;
    min-height: 60vh;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Page Sections */
.page-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    width: 1322px;
  margin: auto;
}

.page-section:last-child {
    border-bottom: none;
}

.rj-section-width{
width: 1398px;
  margin: auto;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent-color);
}

/* ============================================
   Grid Layouts
   ============================================ */

.grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ============================================
   Article Cards
   ============================================ */

.article-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.article-card h3 {
    margin-top: 0;
}

.article-card .card-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.article-card .card-authors {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.article-card .card-abstract {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.article-card .card-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.article-card .card-link:hover {
    background-color: var(--primary-color);
    text-decoration: none;
}

/* ============================================
   Article Detail Page
   ============================================ */

.article-detail {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.article-meta {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.article-meta-item {
    font-size: 0.9rem;
}

.article-meta-label {
    font-weight: 600;
    color: var(--primary-color);
}

.article-meta-value {
    color: var(--text-light);
}

.article-section {
    margin-bottom: 2rem;
}

.article-section h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.article-authors-list {
    background-color: white;
    padding: 1rem;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 1rem;
}

.author-item {
    margin-bottom: 0.75rem;
}

.author-item:last-child {
    margin-bottom: 0;
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
}

.author-affiliation {
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-abstract {
    background-color: white;
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-keywords {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.keyword-tag {
    display: inline-block;
    background-color: var(--background-light);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.doi-section {
    background-color: #e8f4f8;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0199f6;
}

.doi-label {
    font-weight: 600;
    color: var(--primary-color);
}

.doi-value {
    font-family: monospace;
    word-break: break-all;
}

.download-btn {
    display: inline-block;
    background-color: var(--success-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #229954;
    text-decoration: none;
}

/* ============================================
   Forms
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.required {
    color: var(--error-color);
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="phone"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="phone"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Buttons */
button, .btn, input[type="submit"] {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover, input[type="submit"]:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:hover {
    background-color: #229954;
}

.btn-danger {
    background-color: var(--error-color);
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-warning {
    background-color: var(--warning-color);
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: var(--success-color);
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: var(--error-color);
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: var(--warning-color);
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #0c5460;
    color: #0c5460;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background-color: var(--primary-color);
    color: white;
    margin-top: 3rem;
    padding: 2rem var(--spacing-unit);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0px 70px 0px 90px;
}

.footer-column h3 {
    color: var(--accent-color);
    margin-top: 0;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.issn-number, .e-issn-number, .contact-info {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0px 70px 0px 90px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #ccc;
}

.admin-link {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.admin-link:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* ============================================
   Tables
   ============================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

th {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background-color: var(--background-light);
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    background-color: var(--background-light);
    color: var(--primary-color);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-link:hover {
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
}

.page-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================
   Responsive Mobile Design
   ============================================ */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 70px;
        left: -300px;
        width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--primary-color);
        margin-left: 0;
        transition: left 0.3s ease;
        z-index: 100;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-item > a {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1rem 1.5rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: scaleY(0);
        transform-origin: top;
        max-height: 0;
        overflow: hidden;
        background-color: rgba(0,0,0,0.1);
        box-shadow: none;
        transition: all 0.3s ease;
        padding: 0;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: scaleY(1);
        max-height: 500px;
        padding: 0;
    }
    
    .dropdown-menu li {
        border: none;
    }
    
    .dropdown-menu a {
        padding-left: 3rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .page-section {
        padding: 1rem 0;
        display: contents;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .main-content {
        padding: 1rem var(--spacing-unit);
    }

    .footer-grid {
    padding: 0px;
}
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
    
    .article-meta {
        grid-template-columns: 1fr;
    }
    
    .article-detail {
        padding: 1rem;
    }
    
    .header-container {
        flex-direction: inherit;
    }
    
    .site-branding {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .journal-name {
        font-size: 1rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .site-header,
    .site-footer,
    .menu-toggle,
    .btn,
    button {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    a {
        color: black;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: #999;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
/* ============================================
   Author Submission Tracker Styles
   ============================================ */

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge[data-status="submitted"] {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-badge[data-status="under-review"] {
    background-color: #fff3e0;
    color: #f57c00;
    animation: pulse-orange 2s infinite;
}

.status-badge[data-status="revision-requested"] {
    background-color: #ffebee;
    color: #c62828;
    animation: pulse-red 1.5s infinite;
}

.status-badge[data-status="accepted"] {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-badge[data-status="published"] {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.status-badge[data-status="rejected"] {
    background-color: #ffebee;
    color: #d32f2f;
}

@keyframes pulse-orange {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse-red {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Timeline/Progress Tracker Styles */
.submission-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 2rem 0;
    margin: 2rem 0;
}

.submission-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--secondary-color) 0%, var(--secondary-color) 50%, var(--border-color) 50%, var(--border-color) 100%);
    z-index: 1;
}

.timeline-step {
    position: relative;
    flex: 1;
    text-align: center;
    z-index: 2;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    background-color: white;
    position: relative;
    transition: all 0.4s ease;
}

.timeline-step.active .timeline-marker {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 6px rgba(44, 90, 160, 0.1);
    animation: check-mark 0.6s ease;
}

.timeline-step.active .timeline-marker::after {
    content: '✓';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.timeline-step.rejected .timeline-marker {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

.timeline-step.rejected .timeline-marker::after {
    content: '✕';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

@keyframes check-mark {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.timeline-label {
    margin-top: 1rem;
}

.timeline-label strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.timeline-label small {
    color: #999;
    font-size: 0.75rem;
}

.timeline-step.active .timeline-label strong {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .submission-timeline {
        flex-direction: column;
        padding: 1rem 0;
    }

    .submission-timeline::before {
        left: 19px;
        top: 0;
        right: auto;
        height: calc(100% - 1rem);
        width: 2px;
        background: linear-gradient(to bottom, var(--secondary-color) 0%, var(--secondary-color) 50%, var(--border-color) 50%, var(--border-color) 100%);
    }

    .timeline-step {
        text-align: left;
        padding-left: 3rem;
        margin-bottom: 1.5rem;
    }

    .timeline-marker {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }
}

/* ============================================
   Professional Authentication Forms
   ============================================ */

.auth-form-wrapper {
    max-width: 500px;
    margin: 3rem auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 3rem 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-form-title {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.auth-form-subtitle {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-form {
    width: 100%;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
    font-weight: 700;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.1);
}

.form-input::placeholder {
    color: #bbb;
}

.form-input.error {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

.form-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-of-type {
    margin-bottom: 2rem;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    flex: 1;
    padding-right: 3rem !important;
    font-size: 1rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.password-icon {
    font-size: 1.2rem;
    display: inline-block;
    line-height: 1;
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1855a7 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.2);
    letter-spacing: 0.5px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 90, 160, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.2);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Auth Footer */
.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.auth-footer p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.auth-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Form Group Spacing */
.form-group + .form-group {
    margin-top: 1.5rem;
}

/* OTP Input Specific Styling */
.otp-input {
    text-align: center !important;
    font-family: monospace;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
}

.info-box {
    background-color: #e3f2fd;
    border-left: 4px solid var(--secondary-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.info-box strong {
    color: var(--primary-color);
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--accent-color);
}

/* Responsive Auth Form */
@media (max-width: 768px) {
    .auth-form-wrapper {
        max-width: 100%;
        margin: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .auth-form-title {
        font-size: 1.75rem;
    }

    .form-input {
        padding: 0.75rem 0.9rem;
        font-size: 16px;
    }

    .password-toggle {
        right: 0.5rem;
        padding: 0.4rem;
    }

    .password-icon {
        font-size: 1rem;
    }

    .otp-input {
        font-size: 1.25rem !important;
        letter-spacing: 0.15em;
    }
}/* Submission status timeline */
.submission-timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.timeline-step {
    position: relative;
    padding-top: 1rem;
    text-align: center;
}

.timeline-step::after {
    content: '';
    position: absolute;
    top: 1.1rem;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-step:first-child::after {
    left: 50%;
    width: 50%;
}

.timeline-step:last-child::after {
    width: 50%;
}

.submission-timeline {
    position: relative;
}

.submission-timeline::before {
    content: '';
    position: absolute;
    top: 1.1rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--success-color);
    transition: width 0.85s ease;
    z-index: 0;
}

.submission-timeline.in-view::before {
    width: 100%;
}

.timeline-marker {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--background-light);
    border: 2px solid var(--border-color);
    margin: 0 auto 0.5rem;
    z-index: 1;
}

.timeline-step.active .timeline-marker,
.timeline-step.completed .timeline-marker {
    background: var(--success-color);
    border-color: var(--success-color);
}

.timeline-step.rejected .timeline-marker {
    background: var(--error-color);
    border-color: var(--error-color);
}

.timeline-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.timeline-step.active .timeline-label strong,
.timeline-step.completed .timeline-label strong {
    color: var(--text-dark);
}

.timeline-step.rejected .timeline-label strong {
    color: var(--error-color);
}
.timeline-step.completed .timeline-marker::after {
    content: "\2713";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    color: white;
    font-size: 0.85rem;
    opacity: 1 !important;
    transition: opacity 0.15s ease var(--step-delay), transform 0.15s ease var(--step-delay);
}

.timeline-step.active .timeline-marker::after {
    content: "";
}
.submission-timeline {
    --animation-duration: 0.35s;
}

.timeline-step {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--animation-duration) ease, transform var(--animation-duration) ease;
}

.timeline-step.in-view {
    /* retained for backward compatibility; no extra styles needed */
}

.timeline-step .timeline-marker {
    transition: background var(--animation-duration) ease, border-color var(--animation-duration) ease;
}

.timeline-step.completed .timeline-marker,
.timeline-step.active .timeline-marker {
    animation: pop-in 0.25s ease forwards;
}

@keyframes pop-in {
    0% { transform: scale(0.6); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
