@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Open+Sans:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
}

:root {
  --color-primary: #00356B;
  --color-primary-hover: #004e9b;
  --color-secondary: #009688;
  --color-secondary-hover: #00c4b0;
  --color-white-bg-hover: #eef2ff;
}

.custom-gradient {
    background: linear-gradient(135deg, var(--color-primary) 20%, var(--color-secondary) 100%);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.featured-issue {
    background-image: url('/api/placeholder/800/500');
    background-size: cover;
    background-position: center;
}


/* BRAND */
.brand-primary{
    color: var(--color-primary);
}
.brand-secondary{
    color: var(--color-secondary);
}
.brand-primary-bg{
    background-color: var(--color-primary);
}
.brand-secondary-bg{
    background-color: var(--color-secondary);
}
.brand-secondary-bg:hover{
    background-color: var(--color-secondary-hover);
}


/* BUTTON */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: white;
    font-weight: 600; /* font-semibold */
    padding: 0.75rem 1.5rem; /* px-6 py-3 */
    border-radius: 0.5rem; /* rounded-lg */
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: white;
}

.btn-primary-md {
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem; /* Equivalent to Tailwind's px-4 py-2 */
    border-radius: 0.375rem; /* Equivalent to Tailwind's rounded-md */
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary-md:hover {
    background-color: var(--color-primary-hover);
    color: white;
}

.btn-primary-sm {
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
    padding: 0.375rem 0.75rem; /* Equivalent to Tailwind's px-3 py-1.5 */
    border-radius: 0.25rem; /* Equivalent to Tailwind's rounded */
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem; /* text-sm */
}

.btn-primary-sm:hover {
    background-color: var(--color-primary-hover);
    color: white;
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem; /* Equivalent to Tailwind's px-6 py-3*/
    border: 2px solid var(--color-primary);
    border-radius: 0.5rem; /* Equivalent to Tailwind's rounded-lg */
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    color: white;
    font-weight: 600; /* font-semibold */
    padding: 0.75rem 1.5rem; /* px-6 py-3 */
    border-radius: 0.5rem; /* rounded-lg */
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-secondary-hover);
    color: white;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--color-primary);
    font-weight: 600; /* font-semibold */
    padding: 0.75rem 1.5rem; /* px-6 py-3 */
    border-radius: 0.5rem;   /* rounded-lg */
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-white:hover {
    background-color: var(--color-white-bg-hover); /* Tailwind's indigo-50 */
    color: var(--color-primary);
}


/* LINK */
.link-default {
    color: var(--color-primary); /* Tailwind's text-gray-700 */
    transition: color 0.3s ease;
}

.link-default:hover {
    color: var(--color-primary-hover);
}


/* FORM */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 53, 107, 0.1);
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.registration-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.password-strength {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.strength-weak { color: #ef4444; }
.strength-medium { color: #f59e0b; }
.strength-strong { color: #10b981; }

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}


/* DASHBOARD */
.dashboard-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.status-pending {
    background-color: #fef3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-completed {
    background-color: #d1edff;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-under-review {
    background-color: #e2e3ff;
    color: #383d75;
    border: 1px solid #c3c6e7;
}

.status-published {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.table-row:hover {
    background-color: #f8fafc;
}


/* SUBMISSION FORM */
.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 200px;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    background-color: #d1d5db;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: var(--color-primary);
}

.step.completed .step-number {
    background-color: var(--color-secondary);
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #d1d5db;
    margin: 0 1rem;
}

.step.completed .step-line {
    background-color: var(--color-secondary);
}

.step:last-child .step-line {
    display: none;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--color-primary);
}

.review-section {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-label {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.review-value {
    color: #374151;
}

/* Article Details */
.article-title {
    line-height: 1.2;
}

.citation-box {
    font-style: italic;
}

.reference-list {
    counter-reset: reference-counter;
}

.reference-list li {
    counter-increment: reference-counter;
    position: relative;
    padding-left: 2rem;
}

.reference-list li::before {
    content: counter(reference-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: var(--color-primary);
}

/* ACCORDION - Focus Areas */
.accordion-item {
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    cursor: pointer;
    user-select: none;
}

.accordion-header:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.accordion-content {
    overflow: hidden;
}

.focus-area-item {
    padding: 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.focus-area-item:hover {
    background-color: #f9fafb;
}

.focus-area-item i {
    font-size: 1.25rem;
}

.focus-area-item h4 {
    font-size: 0.9375rem;
    line-height: 1.4;
}

/* AJS HOME - SIDEBAR NAVIGATION */
.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) #f3f4f6;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 3px;
}

.sidebar-link {
    display: block;
    padding: 0.625rem 1rem;
    color: #4b5563;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background-color: #f3f4f6;
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    transform: translateX(4px);
}

.sidebar-link.active {
    background-color: #eef2ff;
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    font-weight: 600;
}

/* AJS HOME - SCOPE CARDS */
.scope-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 4px solid var(--color-secondary);
    transition: all 0.3s ease;
}

.scope-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.scope-code {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-right: 0.75rem;
    min-width: 2.5rem;
    text-align: center;
}

.scope-code-sm {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    min-width: 2rem;
    text-align: center;
}

.scope-title {
    flex: 1;
    color: #374151;
    font-weight: 500;
}

/* AJS HOME - ARTICLE TYPE CARDS */
.article-type-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.article-type-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

/* AJS HOME - EDITORIAL CARDS */
.editorial-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.editorial-card:hover {
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.editorial-table {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.editorial-table thead {
    background: var(--color-primary);
}

.editorial-table th {
    padding: 1rem;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.editorial-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #374151;
}

.editorial-table tbody tr:hover {
    background-color: #f9fafb;
}

.editorial-table tbody tr:last-child td {
    border-bottom: none;
}

/* AJS HOME - STRUCTURE CARDS */
.structure-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.25rem;
    border-left: 4px solid var(--color-secondary);
    transition: all 0.3s ease;
}

.structure-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.1);
}

/* AJS HOME - INFO CARDS */
.info-card {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: white;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.1);
}

/* AJS HOME - INDEXING CARDS */
.indexing-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
}

.indexing-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1024px) {
    .sidebar-nav {
        position: relative;
        top: 0;
        left: 0;
        height: auto;
    }
}

@media (max-width: 768px) {
    .editorial-table {
        font-size: 0.75rem;
    }
    
    .editorial-table th,
    .editorial-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .scope-title {
        font-size: 0.875rem;
    }
}

/* X-CLOAK FOR ALPINE.JS */
[x-cloak] {
    display: none !important;
}

/* NAVBAR DROPDOWN */
.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: #f9fafb;
    color: var(--color-primary);
}

.dropdown-item:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

/* MOBILE DROPDOWN */
.mobile-dropdown {
    border-left: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.mobile-dropdown:hover {
    border-left-color: var(--color-primary);
}

.mobile-dropdown-item {
    display: block;
    padding: 0.75rem;
    margin: 0.25rem 0;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    background-color: #f9fafb;
    text-decoration: none;
}

.mobile-dropdown-item:hover {
    background-color: #eef2ff;
    transform: translateX(4px);
}