/* ============================================
   LOA JURNAL PORTAL — FRONTEND CUSTOM STYLES
   Modern, Elegant, Dynamic with Bootstrap 5
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- Design Tokens ---- */
:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --primary-darker: #1e1b4b;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Global ---- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--primary);
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

a { transition: var(--transition); }

/* ---- Navbar ---- */
.loa-navbar {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: var(--glass-bg) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 0.75rem 0;
    transition: var(--transition);
    z-index: 1050;
}

.loa-navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.loa-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary) !important;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.loa-navbar .navbar-brand img {
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.loa-navbar .nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.loa-navbar .nav-link:hover,
.loa-navbar .nav-link:focus {
    color: var(--primary) !important;
    background: rgba(79, 70, 229, 0.06);
}

.loa-navbar .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    animation: dropIn 0.25s ease-out;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.loa-navbar .dropdown-item {
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.loa-navbar .dropdown-item:hover {
    background: rgba(79, 70, 229, 0.06);
    color: var(--primary);
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 40%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 5rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.08);
    pointer-events: none;
}

.hero-section .hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
}

.hero-section .hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.hero-section .hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-illustration {
    position: relative;
}

.hero-illustration .float-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: #fff;
    animation: floatUp 3s ease-in-out infinite;
}

.hero-illustration .float-card:nth-child(2) {
    animation-delay: 1s;
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---- Buttons ---- */
.btn-hero-primary {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    border: none;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.btn-hero-primary:hover {
    background: #f0f0ff;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-hero-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    border: none;
    font-weight: 600;
    border-radius: var(--radius);
}

/* Smaller button sizes */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-xs {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* ---- Feature Cards ---- */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.feature-card:hover .icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.icon-primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.icon-secondary {
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
}

.icon-accent {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ---- Section Styles ---- */
.section-header {
    margin-bottom: 3rem;
}

.section-header .section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.06);
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--text);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

/* ---- Data Table Section ---- */
.data-section {
    background: var(--bg);
    padding: 5rem 0;
}

.data-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.data-card .table {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.data-card .table thead th {
    background: #f8fafc;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    padding: 1rem 1.25rem;
    white-space: nowrap;
}

.data-card .table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.data-card .table tbody tr {
    transition: var(--transition);
}

.data-card .table tbody tr:hover {
    background: rgba(79, 70, 229, 0.02);
}

.data-card .table tbody tr:last-child td {
    border-bottom: none;
}

/* ---- Page Header (for inner pages) ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.page-hero .page-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 400;
}

/* ---- Form Card ---- */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

.form-card .form-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

.form-card .form-control,
.form-card .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: #fafbfc;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background-color: #fff;
}

/* ---- Login Card ---- */
.login-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: 3rem;
    max-width: 440px;
    margin: 0 auto;
}

.login-card .form-floating .form-control {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: #fafbfc;
    transition: var(--transition);
}

.login-card .form-floating .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: #fff;
}

/* ---- Success / Status Card ---- */
.status-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    text-align: center;
}

.status-card .status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.status-card .status-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* ---- Accordion (Instructions) ---- */
.modern-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.modern-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius) !important;
}

.modern-accordion .accordion-button:not(.collapsed) {
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
    box-shadow: none;
}

.modern-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--border);
}

.modern-accordion .accordion-body {
    padding: 1.25rem;
}

.modern-accordion .accordion-body img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* ---- Footer ---- */
.loa-footer {
    background: var(--primary-darker);
    padding: 3rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.loa-footer .footer-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.loa-footer .footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.4);
}

.loa-footer .footer-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.loa-footer .footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.3rem 0;
    transition: var(--transition);
}

.loa-footer .footer-link:hover {
    color: #fff;
    transform: translateX(4px);
}

.loa-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.loa-footer .social-link {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
}

.loa-footer .social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Badge Styles ---- */
.badge-reg {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(79, 70, 229, 0.15);
    font-family: 'SFMono-Regular', 'Menlo', monospace;
}

.badge-journal {
    background: rgba(14, 165, 233, 0.08);
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
}

.badge-akreditasi {
    background: rgba(100, 116, 139, 0.08);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
}

.badge-published {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
}

.badge-progress {
    background: rgba(245, 158, 11, 0.08);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
}

/* ---- DataTables Override ---- */
.dataTables_wrapper .dataTables_filter input {
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 0.55rem 1rem !important;
    font-size: 0.85rem;
    background: var(--card-bg);
    transition: var(--transition);
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-in-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero-section { padding: 3.5rem 0 3rem; }
    .hero-section .hero-title { font-size: 2rem; }
    .hero-section .hero-subtitle { font-size: 0.95rem; }
    .data-section { padding: 3rem 0; }
    .form-card { padding: 1.5rem; }
    .login-card { padding: 2rem; }
}
