/* Journal Management System - Main Stylesheet */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #0a2f4f;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --info-color: #2980b9;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --gray-light: #95a5a6;
    --gray-dark: #7f8c8d;
    --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
}

/* Base Styles */
body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

/* Layout */
.container-main {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Header Styles */
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Sidebar Styles */
.sidebar {
    background-color: white;
    box-shadow: 1px 0 5px rgba(0,0,0,0.1);
    height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar .nav-link {
    color: var(--dark-color);
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover, 
.sidebar .nav-link.active {
    background-color: rgba(var(--secondary-color), 0.1);
    color: var(--secondary-color);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 1.2rem;
    text-align: center;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* Article Styles */
.article-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem;
    margin: 2rem auto;
    max-width: 800px;
    transition: box-shadow 0.2s;
}

.article-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.article-content {
    line-height: 1.8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.25rem;
}

/* Forms */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--secondary-color), 0.25);
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color:  #c18847;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Tables */
.table {
    border-radius: 0.25rem;
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

/* Progress Bar */
.progress {
    height: 0.5rem;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 1.2rem;
    background: #e9ecef;
    border-radius: 0.6rem;
    overflow: hidden;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #4e73df 0%, #1cc88a 100%);
    transition: width 0.5s;
}

/* Status Badges */
.badge-status {
    padding: 0.35em 0.65em;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 0.05em;
}

.badge-status-submitted {
    background-color: #0a2f4f;
}

.badge-status-under-review {
    background-color: #f39c12;
}

.badge-status-accepted {
    background-color: #27ae60;
}

.badge-status-published {
    background-color: #2ecc71;
}

.badge-status-rejected {
    background-color: #e74c3c;
}

.badge-corresponding {
    background: #007bff;
    color: #fff;
    font-size: 0.9em;
    margin-left: 0.5em;
    border-radius: 0.7em;
    padding: 0.2em 0.7em;
}

/* Alerts */
.alert {
    border-left: 4px solid;
}

.alert-primary {
    border-left-color: var(--secondary-color);
}

.alert-success {
    border-left-color: var(--success-color);
}

.alert-danger {
    border-left-color: var(--danger-color);
}

/* Dashboard Widgets */
.dashboard-widget {
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.widget-stat {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Manuscript Progress */
.progress-tracker {
    position: relative;
    margin: 2rem 0;
}

.progress-step {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.progress-step:last-child {
    margin-bottom: 0;
}

.progress-step.completed .step-icon {
    background-color: var(--success-color);
    color: white;
}

.progress-step.current .step-icon {
    background-color: var(--secondary-color);
    color: white;
}

.progress-step.pending .step-icon {
    background-color: var(--light-color);
    color: var(--gray-dark);
}

.step-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-description {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

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

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

/* Responsive Adjustments */
@media (max-width: 992px) {
    .sidebar {
        height: auto;
        position: relative;
    }
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .article-content {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .article-card { padding: 1rem; }
    .article-title {
        font-size: 1.5rem;
    }
    .badge-status {
        font-size: 0.9rem;
        padding: 0.4em 0.8em;
    }
    .progress-bar {
        height: 1rem;
    }
    .author-list li {
        font-size: 1rem;
    }
}

/* Custom Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    min-width: 1.25rem;
    height: 1.25rem;
    line-height: 1.25rem;
}

/* Manuscript Submission Form */
.upload-area {
    border: 2px dashed var(--gray-light);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--secondary-color);
    background-color: rgba(var(--secondary-color), 0.05);
}

/* Author List in Submission */
.author-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.author-list li {
    margin-bottom: 0.5em;
    font-size: 1.1rem;
}

.author-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: rgba(0,0,0,0.03);
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.author-item.corresponding {
    background-color: rgba(var(--secondary-color), 0.1);
    border-left: 3px solid var(--secondary-color);
}

/* Review Comments */
.review-comment {
    border-left: 3px solid var(--secondary-color);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.review-comment-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.review-comment-meta {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

/* Issue Cover */
.issue-cover {
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.issue-cover:hover {
    transform: scale(1.02);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}
.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: rgba(0,0,0,0.03);
}

.notification-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0,123,255,0.1);
}