/* 
 * Submission Flow Modernization CSS 
 * Used for Journal Selection and Manuscript Submission Wizard
 */

:root {
    --primary-main: #f97316; /* Orange */
    --primary-dark: #ea580c;
    --primary-light: #ffedd5;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* =========================================
   Step 1: Journal Selection Modernization
   ========================================= */

.selection-hero {
    background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-700) 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    color: var(--white);
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow-lg);
}

.search-container {
    max-width: 600px;
    margin: 30px auto 0;
    position: relative;
    z-index: 10;
}

.search-input-wrapper {
    position: relative;
    box-shadow: var(--shadow-lg);
    border-radius: 50px;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    padding: 5px 15px;
}

.search-input-wrapper i {
    color: var(--slate-400);
    margin-right: 15px;
    font-size: 1.2rem;
}

#journalSearch {
    border: none !important;
    box-shadow: none !important;
    font-size: 1.1rem;
    padding: 12px 10px;
    color: var(--slate-800);
    width: 100%;
}

.view-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
    gap: 10px;
}

.btn-toggle-view {
    background: var(--white);
    border: 1px solid var(--slate-200);
    color: var(--slate-500);
    padding: 8px 15px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.btn-toggle-view.active {
    background: var(--primary-main);
    color: var(--white);
    border-color: var(--primary-main);
}

/* Modern Grid Item */
.journal-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.journal-item.hidden {
    display: none !important;
}

.journal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.journal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-main);
}

.journal-card .img-wrapper {
    height: 200px;
    position: relative;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.journal-card .img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.journal-card:hover .img-wrapper img {
    transform: scale(1.05);
}

.journal-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.journal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.2rem;
    text-decoration: none !important;
}

.journal-meta {
    font-size: 0.85rem;
    color: var(--slate-500);
    margin-bottom: 15px;
}

.journal-meta p {
    margin: 0 0 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.journal-action {
    margin-top: auto;
}

.btn-select-journal {
    width: 100%;
    background: var(--primary-main);
    color: var(--white);
    font-weight: 600;
    padding: 10px;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}

.btn-select-journal:hover {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
}

/* List View Variant */
.list-view .col-md-3 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.list-view .journal-card {
    flex-direction: row;
    height: auto;
    align-items: center;
}

.list-view .img-wrapper {
    height: 120px;
    width: 120px;
    min-width: 120px;
}

.list-view .journal-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 25px;
}

.list-view .journal-title {
    height: auto;
    margin-bottom: 0;
    flex-grow: 1;
    -webkit-line-clamp: 1;
    max-width: 50%;
}

.list-view .journal-meta {
    margin-bottom: 0;
    display: flex;
    gap: 20px;
    flex-grow: 1;
    justify-content: center;
}

.list-view .journal-action {
    margin-top: 0;
    min-width: 150px;
}

/* =========================================
   Step 2: Manuscript Submission Wizard
   ========================================= */

.wizard-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 50px;
    overflow: hidden;
}

/* Stepper */
.stepper {
    display: flex;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    padding: 0;
    margin: 0;
    list-style: none;
}

.step-item {
    flex: 1;
    position: relative;
    padding: 20px 10px;
    text-align: center;
    color: var(--slate-400);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
    border-right: 1px solid var(--slate-200);
}

.step-item:last-child {
    border-right: none;
}

.step-item.active {
    background: var(--white);
    color: var(--primary-main);
}

.step-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-main);
}

.step-item.completed {
    color: var(--slate-800);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--slate-200);
    color: var(--slate-500);
    margin-right: 10px;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.step-item.active .step-number {
    background: var(--primary-main);
    color: var(--white);
}

.step-item.completed .step-number {
    background: #10b981; /* Green */
    color: var(--white);
}

/* Wizard Content */
.wizard-step-content {
    display: none;
    padding: 40px;
}

.wizard-step-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

/* Section Cards */
.form-section-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.form-section-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--slate-100);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-card h4 i {
    color: var(--primary-main);
}

/* Navigation Buttons */
.wizard-footer {
    padding: 25px 40px;
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    display: flex;
    justify-content: space-between;
}

.btn-wizard {
    padding: 10px 25px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.btn-prev {
    background: var(--white);
    border: 1px solid var(--slate-300);
    color: var(--slate-600);
}

.btn-prev:hover {
    background: var(--slate-100);
}

.btn-next, .btn-submit {
    background: var(--primary-main);
    color: var(--white);
    border: none;
}

.btn-next:hover, .btn-submit:hover {
    background: var(--primary-dark);
}

/* Validation Highlights */
.is-invalid-custom {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.invalid-feedback-custom {
    color: #ef4444 !important;
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 600;
}

/* Word Count Badge */
.word-count-badge {
    float: right;
    font-size: 0.75rem;
    color: var(--slate-500);
    background: var(--slate-100);
    padding: 2px 8px;
    border-radius: 10px;
}

.word-count-badge.limit-reached {
    color: #ef4444;
    background: #fef2f2;
}

/* responsive */
@media (max-width: 768px) {
    .step-text {
        display: none;
    }
    .step-number {
        margin-right: 0;
    }
    .wizard-step-content {
        padding: 20px;
    }
    .list-view .col-md-3 {
        width: 100% !important;
    }
    .list-view .journal-card {
        flex-direction: column;
    }
    .list-view .img-wrapper {
        width: 100%;
        height: 150px;
    }
}

/* =========================================
   Restored Components Styling
   ========================================= */

.clsInnerMenu {
    margin: 0 0 30px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 10px;
}

.clsInnerMenu ul.nav {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.clsInnerMenu ul.nav li {
    flex: 1;
    min-width: 140px;
}

.clsInnerMenu ul.nav li a {
    display: block;
    padding: 10px 15px;
    text-align: center;
    color: var(--slate-600);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    background: var(--slate-50);
}

.clsInnerMenu ul.nav li.active a,
.clsInnerMenu ul.nav li a:hover {
    background: var(--primary-light);
    color: var(--primary-main);
    box-shadow: var(--shadow-sm);
}

.table.addAuthors {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 15px;
}

.table.addAuthors th {
    background: var(--slate-100);
    padding: 12px;
    color: var(--slate-700);
    border: none;
}

.table.addAuthors td {
    padding: 12px;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: middle;
}

.btn-remove-auth {
    color: #ef4444;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-remove-auth:hover {
    transform: scale(1.2);
}
