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

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Login & Register Box */
.login-box, .register-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
}

.register-box {
    max-width: 550px;
}

.login-box h1, .register-box h1 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

.login-box h2, .register-box h2 {
    color: #555;
    font-size: 22px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
}

.step.active {
    background: #667eea;
    color: white;
}

.step.completed {
    background: #4caf50;
    color: white;
}

.step-line {
    width: 100px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-logout {
    background: #f44336;
    color: white;
    padding: 8px 20px;
    font-size: 14px;
}

.btn-logout:hover {
    background: #d32f2f;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.button-group .btn {
    flex: 1;
}

/* Links */
.register-link, .login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.register-link a, .login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover, .login-link a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    background: #f5f7fa;
}

.dashboard-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-content h1 {
    color: #667eea;
    font-size: 24px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-name {
    color: #555;
    font-weight: 500;
}

.dashboard-main {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar {
    width: 250px;
    background: white;
    min-height: calc(100vh - 70px);
    padding: 20px 0;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #f5f7fa;
    color: #667eea;
}

.nav-item.active {
    background: #f5f7fa;
    color: #667eea;
    border-left-color: #667eea;
}

.nav-icon {
    margin-right: 10px;
    font-size: 18px;
}

.content {
    flex: 1;
    padding: 30px;
}

.content-header h2 {
    color: #333;
    margin-bottom: 30px;
}

.user-info-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.user-info-card h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

.info-value {
    color: #333;
    font-size: 15px;
}

.role-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 40px;
}

.stat-info h4 {
    color: #999;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-number {
    color: #667eea;
    font-size: 28px;
    font-weight: bold;
}

.recent-activity {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.no-data {
    color: #999;
    text-align: center;
    padding: 40px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-main {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        min-height: auto;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .button-group {
        flex-direction: column;
    }
}

/* Article Submission Styles */
.submission-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.submission-header {
    background: #667eea;
    color: white;
    padding: 20px 30px;
}

.submission-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
}

.submission-header .subtitle {
    margin: 8px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
}

/* Step Tabs */
.step-tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
    overflow-x: auto;
}

.step-tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    border-right: 1px solid #ddd;
    white-space: nowrap;
    position: relative;
}

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

.step-tab.active {
    background: #4861a8;
    color: white;
}

.step-tab.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Submission Form */
.submission-form {
    padding: 30px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control[readonly] {
    background: #f5f5f5;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.required {
    color: #f44336;
    font-weight: bold;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-previous {
    background: #f44336;
    color: white;
}

.btn-previous:hover {
    background: #d32f2f;
}

.btn-next {
    background: #4caf50;
    color: white;
    margin-left: auto;
}

.btn-next:hover {
    background: #388e3c;
}

/* Checkbox List */
.checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: #f5f5f5;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Responsive for submission form */
@media (max-width: 768px) {
    .submission-form {
        padding: 20px;
    }
    
    .step-tabs {
        flex-direction: column;
    }
    
    .step-tab {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .checkbox-list {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-next {
        margin-left: 0;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Author Table Styles */
.btn-add-author {
    background: #4caf50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-add-author:hover {
    background: #388e3c;
}

.authors-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border: 1px solid #ddd;
}

.authors-table th,
.authors-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.authors-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.authors-table tr:hover {
    background: #f9f9f9;
}

.authors-table a {
    color: #667eea;
    text-decoration: none;
}

.authors-table a:hover {
    text-decoration: underline;
}

.authors-table button {
    padding: 4px 8px;
    margin: 0 2px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.authors-table button:hover {
    background: #5568d3;
}

.note-box {
    padding: 15px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    margin: 15px 0;
}

.note-box p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

.note-warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.note-warning p {
    color: #e65100;
}

/* File Upload Styles */
.file-upload-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.file-upload-row {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.file-upload-row:last-child {
    border-bottom: none;
}

.file-upload-left {
    font-size: 14px;
}

.file-upload-left strong {
    display: block;
    margin-bottom: 5px;
}

.file-upload-left small {
    color: #666;
    font-size: 12px;
}

.file-upload-middle {
    color: #666;
    font-size: 14px;
}

.file-name {
    color: #4caf50;
    font-weight: 500;
}

.file-status {
    color: #999;
}

.btn-upload {
    background: #4caf50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.btn-upload:hover {
    background: #388e3c;
}

/* Responsive for modal and tables */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .authors-table {
        font-size: 12px;
    }
    
    .authors-table th,
    .authors-table td {
        padding: 8px 4px;
    }
    
    .file-upload-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Review Page Styles (Step 7) */
.review-section {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.section-header {
    background: #8b1538;
    color: white;
    padding: 10px 15px;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
    font-size: 16px;
    font-weight: 500;
}

.review-item {
    padding: 15px;
    background: white;
    margin-bottom: 15px;
    border-radius: 4px;
    border-left: 3px solid #667eea;
    position: relative;
}

.review-item strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.review-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.review-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #ddd;
}

.review-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.edit-link {
    color: #667eea;
    text-decoration: none;
    margin-left: 10px;
    font-size: 18px;
}

.edit-link:hover {
    color: #5568d3;
}

.btn-small {
    display: inline-block;
    padding: 6px 15px;
    background: #4caf50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 10px;
}

.btn-small:hover {
    background: #388e3c;
}

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-success:hover {
    background: #388e3c;
}

.info-link {
    color: #667eea;
    font-size: 13px;
    text-decoration: none;
    display: block;
    margin-top: 5px;
}

.info-link:hover {
    text-decoration: underline;
}

/* Step 6 Additional Styles */
h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Responsive for review page */
@media (max-width: 768px) {
    .review-section {
        padding: 15px;
    }
    
    .section-header {
        margin: -15px -15px 15px -15px;
        font-size: 14px;
    }
    
    .review-table {
        font-size: 12px;
    }
    
    .review-table th,
    .review-table td {
        padding: 8px 4px;
    }
}








/* Additional CSS for Dashboard - Add this to your existing style.css */

/* Recent Activity Table */
.activity-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 15px;
}

.activity-table thead {
    background: #f5f7fa;
}

.activity-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    font-size: 14px;
}

.activity-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 14px;
}

.activity-table tr:hover {
    background: #f9f9f9;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-draft {
    background: #fff3e0;
    color: #e65100;
}

.status-submitted {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-under-review {
    background: #e3f2fd;
    color: #1565c0;
}

.status-accepted {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-rejected {
    background: #ffebee;
    color: #c62828;
}

/* Action Buttons */
.btn-continue,
.btn-view {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-continue {
    background: #667eea;
    color: white;
}

.btn-continue:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.btn-view {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

.btn-view:hover {
    background: #e0e0e0;
}

/* Stat Cards Enhancement */
.stat-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive for Activity Table */
@media (max-width: 768px) {
    .activity-table {
        font-size: 12px;
    }
    
    .activity-table th,
    .activity-table td {
        padding: 8px 10px;
    }
    
    .activity-table th:nth-child(3),
    .activity-table td:nth-child(3),
    .activity-table th:nth-child(4),
    .activity-table td:nth-child(4) {
        display: none;
    }
}