:root {
    --primary-color: #7b1d22;
    /* Deep Maroon from logo */
    --accent-color: #d4af37;
    /* Gold from logo */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Bar Styles */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 5%;
    font-size: 0.85rem;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.auth-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: relative;
}

.auth-buttons.blurred {
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
    opacity: 0.7;
}

.coming-soon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap;
    z-index: 10;
    filter: none !important;
}

.auth-btn {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-btn.signup {
    background-color: var(--accent-color);
    padding: 0.2rem 1rem;
    border-radius: 4px;
    color: var(--primary-color);
}

/* Header Styles */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 5%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
}

.logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1200;
    position: relative;
}

.menu-toggle span {
    display: block;
    /* Ensure they have height and width */
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin-left: 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* Sidebar Styles */
.main-layout {
    display: flex;
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
    overflow: hidden;
    height: 0;
    /* Important for flex-grow to work properly in some browsers */
}

.sidebar {
    width: 250px;
    background: var(--white);
    padding: 1.5rem 0;
    height: 100vh;
    overflow-y: visible;
    transition: 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.right-sidebar {
    width: 280px;
    background: transparent;
    padding: 1rem 0.5rem;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

/* Custom Scrollbar for Right Sidebar */
.right-sidebar::-webkit-scrollbar {
    width: 4px;
}

.right-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.right-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}


.right-sidebar .side-nav h3 {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.cover-container {
    margin: 1rem 0;
    border-radius: 4px;
    overflow: hidden;
}

.journal-cover {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.journal-cover:hover {
    transform: scale(1.02);
}

.quick-links h4 {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin: 1.5rem 0 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.3rem;
    display: inline-block;
}

.quick-links ul {
    list-style: none;
}

.quick-links li {
    margin-bottom: 0.5rem;
}

.quick-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    transition: var(--transition);
}

.quick-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.side-menu {
    list-style: none;
}

.side-link {
    display: block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.side-link:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-left-color: var(--accent-color);
}

.side-link.active {
    background-color: rgba(123, 29, 34, 0.08);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 1.25rem;
}

/* Refined Sidebar Action Links (Integrated Design) */
.submit-link {
    color: var(--primary-color);
    font-weight: 700 !important;
    border-left: 4px solid var(--primary-color) !important;
}

.submit-link:hover {
    background-color: rgba(223, 86, 7, 0.08) !important;
}

.reviewer-link {
    color: var(--primary-color);
    font-weight: 700 !important;
    border-left: 4px solid var(--primary-color) !important;
}

.reviewer-link:hover {
    background-color: rgba(223, 86, 7, 0.08) !important;
}

.submit-link span,
.reviewer-link span {
    filter: grayscale(1);
    transition: var(--transition);
}

.submit-link:hover span,
.reviewer-link:hover span {
    filter: grayscale(0);
}

.main-content {
    flex: 1;
    padding: 2rem;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    background: var(--white);
}

/* Custom Scrollbar for Chrome/Safari/Edge */
.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid transparent;
}

/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-content {
    text-align: center;
    animation: splashPulse 2s ease-in-out infinite;
}

.splash-logo {
    width: 250px;
    height: auto;
    object-fit: contain;
}

/* Contact Page Styles */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.contact-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.contact-info-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.contact-form-card {
    background: #fdfdfd;
    padding: 2.5rem;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.form-input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(123, 29, 34, 0.1);
}

/* Editorial Page Styles */
.editorial-container {
    max-width: 950px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.editorial-intro {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.editors-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.editor-card {
    background: var(--white);
    padding: 2.2rem;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
    transition: var(--transition);
}

.editor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.editor-info {
    flex: 1;
}

.editor-role {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.editor-name {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: var(--text-color);
}

.editor-title {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.editor-details-box {
    background: #f9f9f9;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    border: 1px solid #eee;
}

.editor-detail {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editor-detail:last-child {
    margin-bottom: 0;
}

.editor-detail strong {
    color: var(--primary-color);
    min-width: 60px;
}

.editor-detail a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.editor-detail a:hover {
    color: var(--primary-color);
}

.editor-photo {
    flex-shrink: 0;
}

.editor-photo img {
    width: 160px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.editorial-members-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.member-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #eee;
}

.member-name {
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
    color: var(--text-color);
}

.member-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

.member-email {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

@keyframes splashPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

.splash-hidden {
    opacity: 0;
    pointer-events: none;
}

/* =============================================
   RESPONSIVE DESIGN (Consolidated for Priority)
   ============================================= */

@media (max-width: 992px) {
    .main-header {
        padding: 0.8rem 1.25rem !important;
        position: relative !important;
        z-index: 1100 !important;
    }

    .header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 1.5rem !important;
        flex-direction: row-reverse !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .menu-toggle {
        display: flex !important;
        z-index: 2100 !important;
        /* Above overlay and sidebar */
    }

    .logo-section {
        flex-direction: row !important;
        gap: 0.8rem !important;
    }

    .logo-image {
        width: 45px !important;
        height: 45px !important;
    }

    .logo-text h1 {
        font-size: 1.15rem !important;
        margin-bottom: 0.1rem !important;
    }

    .logo-text p {
        display: block !important;
        font-size: 0.8rem !important;
        letter-spacing: 0 !important;
    }

    .nav-menu {
        display: none !important;
    }

    .main-layout {
        flex-direction: column !important;
        height: 0 !important;
        overflow-y: auto !important;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 260px !important;
        height: 100vh !important;
        z-index: 2000 !important;
        transform: translateX(-100%) !important;
        transition: 0.3s ease !important;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15) !important;
        padding-top: 3rem !important;
        background: var(--white) !important;
        display: block !important;
    }

    .side-link {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }

    .sidebar.active {
        transform: translateX(0) !important;
    }

    .sidebar-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(2px) !important;
        z-index: 1950 !important;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease !important;
    }

    .sidebar-overlay.active {
        display: block !important;
        opacity: 1 !important;
    }

    .menu-close {
        display: block !important;
        position: absolute !important;
        top: 1rem !important;
        right: 1.2rem !important;
        font-size: 1.8rem !important;
        background: rgba(123, 29, 34, 0.1) !important;
        border: none !important;
        color: var(--primary-color) !important;
        cursor: pointer !important;
        line-height: 1 !important;
        z-index: 2200 !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: var(--transition) !important;
    }

    .menu-close:hover {
        background: var(--primary-color) !important;
        color: var(--white) !important;
    }

    .right-sidebar {
        flex: none !important;
        width: 100% !important;
        position: static !important;
        padding: 1.5rem 1.25rem !important;
        height: auto !important;
        overflow: visible !important;
        background: var(--light-bg) !important;
    }

    .main-content {
        flex: none !important;
        height: auto !important;
        overflow: visible !important;
        padding: 1.5rem 1.25rem !important;
    }

    .side-menu {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .contact-form-card {
        padding: 1.5rem !important;
    }

    .editor-card {
        flex-direction: column-reverse !important;
        padding: 1.5rem !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }

    .editor-photo img {
        width: 140px !important;
        height: 140px !important;
    }

    .editor-detail {
        justify-content: center !important;
    }

    .header-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.25rem !important;
    }

    .logo-section {
        gap: 0.5rem !important;
    }

    .header-right {
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    .top-bar {
        padding: 0.5rem 1.25rem !important;
    }

    .top-bar-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
}

@media (max-width: 600px) {
    .menu-toggle {
        transform: scale(0.75) !important;
        transform-origin: right center !important;
    }

    .logo-image {
        width: 45px !important;
        height: 45px !important;
    }

    .logo-text h1 {
        font-size: 0.95rem !important;
    }

    .logo-text p {
        display: block !important;
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        margin-top: 0.1rem !important;
    }

    .header-cta-link {
        font-size: 0.7rem !important;
        padding: 0.35rem 0.6rem !important;
    }

    .top-bar {
        font-size: 0.8rem !important;
    }
}

/* =============================================
   ADMIN DASHBOARD STYLES
   ============================================= */


/* =============================================
   ADMIN DASHBOARD STYLES (ENHANCED)
   ============================================= */

.dashboard-layout {
    background: #f8fafc;
}

.dashboard-content-standalone {
    padding: 3rem;
    background: #f8fafc;
}

.dashboard-header {
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 1.5rem;
}

.dashboard-header h2 {
    font-size: 2.2rem;
    color: #1a202c;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.dashboard-header p {
    color: #718096;
    font-size: 1.1rem;
}

.admin-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.admin-card h5 {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #edf2f7;
}

.form-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.mini-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
    color: #2d3748;
    transition: all 0.2s;
}

.form-input:focus,
.mini-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123, 29, 34, 0.15);
}

.admin-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-btn:hover {
    background: #5a1418;
    transform: translateY(-1px);
}

.admin-btn.signup {
    background: #2d3748;
}

.admin-btn.signup:hover {
    background: #1a202c;
}

.admin-list-item {
    background: var(--white) !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 1rem !important;
}

.member-edit-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.item-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.item-inputs textarea {
    grid-column: span 2;
    min-height: 80px;
    resize: vertical;
}

.item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
}

.action-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}

.action-btn.edit {
    background: #edf2f7;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

.action-btn.edit:hover {
    background: #e2e8f0;
}

.action-btn.delete {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.action-btn.delete:hover {
    background: #c53030;
    color: #fff;
}

.admin-alert {
    background: #f0fff4;
    color: #276749;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #c6f6d5;
    margin-bottom: 2rem;
}

/* Global Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    animation: pulse-text 1.5s ease-in-out infinite;
    text-align: center;
}

.loading-subtext {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}