/**
 * style.css
 * Developer: Arcchie Team
 * Theme: Professional Publication / Author Portal
 * Compatible with PHP 7.x / Shared Hosting
 */

/* ==============================
   GLOBAL RESET & BASE
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    background-color: #f4f6f9;
    color: #1f2937;
    line-height: 1.6;
}

/* ==============================
   LINKS & TYPOGRAPHY
================================ */
a {
    color: #0f766e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5 {
    color: #002147;
    font-weight: 600;
}

input[readonly] {
    background-color: #e9ecef;  /* Light gray background to indicate readonly */
    opacity: 1;                  /* Ensure opacity doesn’t dim the text too much */
    cursor: not-allowed;         /* Show not-allowed cursor */
  }

/* ==============================
   NAVBAR
================================ */
.navbar {
    background-color: #002147 !important;
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 600;
    color: #ffffff !important;
    letter-spacing: 0.5px;
}

.navbar .nav-link {
    color: #e5e7eb !important;
    margin-left: 15px;
    font-size: 0.95rem;
}

.navbar .nav-link:hover {
    color: #ffffff !important;
}

/* ==============================
   CONTAINER
================================ */
.container {
    max-width: 1200px;
}

/* ==============================
   AUTH (LOGIN) PAGE
================================ */
.auth-wrapper {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 1100px;
    background: #ffffff;
    display: flex;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.auth-wrapper .auth-card {
    display: flex;
}


/* LEFT PANEL */
.auth-left {
    flex: 1;
    background:
        linear-gradient(
            rgba(0, 33, 71, 0.88),
            rgba(0, 33, 71, 0.88)
        ),
        url("../images/author-img.jpg") center / cover no-repeat;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.auth-left-overlay {
    padding: 60px;
}

.auth-left h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.auth-left p {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* RIGHT PANEL */
.auth-right {
    flex: 1;
    padding: 50px;
}

.auth-right h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #002147;
}

/* ==============================
   FORMS
================================ */
label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
    color: #374151;
}

.form-control {
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15,118,110,0.15);
}

/* Divider */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
    font-size: 0.85rem;
    color: #6b7280;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e5e7eb;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* ==============================
   BUTTONS
================================ */
.btn {
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.btn-primary {
    background-color: #002147;
    border-color: #002147;
    padding: 12px;
}

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

.btn-accent {
    background-color: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
    padding: 12px;
}

.btn-accent:hover {
    background-color: #115e59;
    border-color: #115e59;
    color: #ffffff;
}

/* ==============================
   ALERTS
================================ */
.alert {
    border-radius: 8px;
    font-size: 0.9rem;
    padding: 10px 14px;
}

/* ==============================
   TABLES
================================ */
.table th {
    background-color: #002147;
    color: #ffffff;
    font-weight: 500;
}

.table td {
    vertical-align: middle;
}

/* ==============================
   FOOTER
================================ */
footer {
    padding: 15px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

/* ==============================
   RESPONSIVE
================================ */
@media (max-width: 992px) {
    .auth-card {
        flex-direction: column;
    }

    .auth-left {
        min-height: 240px;
    }

    .auth-left-overlay {
        padding: 40px;
        text-align: center;
    }

    .auth-right {
        padding: 35px 25px;
    }
}

@media (max-width: 576px) {
    .auth-right {
        padding: 30px 20px;
    }
}

/* ==============================
   AUTHOR QUOTE ROTATION
================================ */
.author-quote {
    font-size: 1.15rem;
    font-style: italic;
    margin-top: 25px;
    opacity: 0.95;
    transition: opacity 0.6s ease-in-out;
}

.author-name {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 500;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

/* ==============================
   GLOBAL LOADER OVERLAY
================================ */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 33, 71, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-box {
    text-align: center;
    color: #ffffff;
    font-size: 0.95rem;
}
/* ==============================
   DASHBOARD LAYOUT
================================ */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* SIDEBAR */
.dashboard-sidebar {
    width: 260px;
    background: #002147;
    color: #ffffff;
    padding: 25px 20px;
}

.sidebar-brand h4 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.sidebar-brand small {
    opacity: 0.8;
}

.sidebar-menu {
    list-style: none;
    margin-top: 30px;
    padding: 0;
}
.sidebar-menu i {
    font-size: 1rem;      /* Adjust icon size */
    margin-right: 8px;    /* Space between icon and text */
    vertical-align: middle;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    text-decoration: none;
}

.sidebar-menu .divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 15px 0;
}

/* Compact sidebar menu */
.dashboard-sidebar .sidebar-menu li a {
    display: flex;           /* Align icon + text in one line */
    align-items: center;     /* Vertically center icon and text */
    padding: 10px 15px;      /* Adjust spacing inside items */
    color: #fff;             /* Keep text visible on blue background */
    text-decoration: none;
}

.dashboard-sidebar .sidebar-menu li a i {
    font-size: 1.1rem;       /* Slightly smaller icon */
    margin-right: 10px;       /* Space between icon and text */
}

.dashboard-sidebar .sidebar-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);  /* subtle hover effect */
}

.dashboard-sidebar .sidebar-menu .menu-text {
    white-space: nowrap;      /* Prevent wrapping */
    font-size: 0.95rem;       /* Slightly smaller text for compact look */
}

/* ==============================
   SIDEBAR BRAND TEXT VISIBILITY
================================ */

.dashboard-sidebar .sidebar-brand {
    color: #ffffff;
}

.dashboard-sidebar .sidebar-brand h5 {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.dashboard-sidebar .sidebar-brand small {
    color: rgba(255, 255, 255, 0.75);
}


/* MAIN */
.dashboard-main {
    flex: 1;
    background: #f4f6f9;
}

/* TOP BAR */
.dashboard-topbar {
    background: #ffffff;
    padding: 15px 25px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CONTENT */
.dashboard-content {
    padding: 25px;
}

/* ==============================
   DASHBOARD CARD (SAFE)
================================ */
.dashboard-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    margin-bottom: 25px;
}

.dashboard-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #002147;
}

/* ==============================
   DASHBOARD CONTENT SAFETY
================================ */
.dashboard-main,
.dashboard-content {
    display: block;
    visibility: visible;
    opacity: 1;
    height: auto;
    overflow: visible;
    position: relative;
}

/* ==============================
   ACCREDITATION CARD
================================ */
.accreditation-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accreditation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.accreditation-card h5 {
    color: #002147;
    font-weight: 600;
    margin-bottom: 12px;
}

/* .badge-accreditation {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    background-color: #0f766e;
    color: #ffffff;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
} */

.badge-accreditation {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.4px;
}

.accreditation-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 0;
}

/* New Author */
.badge-new {
    background-color: #e5e7eb;
    color: #374151;
}

/* Eminent Author */
.badge-eminent {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Best Seller */
.badge-bestseller {
    background-color: #ede9fe;
    color: #6b21a8;
}

/* Golden Author */
.badge-golden {
    background-color: #fef3c7;
    color: #92400e;
}

/* ==============================
   MANUSCRIPT STATUS BADGES
================================ */
.manuscript-status {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-draft {
    background: #e5e7eb;
    color: #374151;
}

.status-submitted {
    background: #dbeafe;
    color: #1e40af;
}

.status-under_review {
    background: #fef3c7;
    color: #92400e;
}

.status-published {
    background: #dcfce7;
    color: #166534;
}


/* ==============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .accreditation-card {
        padding: 15px 20px;
    }
    
    .badge-accreditation {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}
/* ==============================
   PROFILE PAGE CARDS
================================ */
.auth-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #002147;
}

/* Card Styling */
.auth-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* Form Labels */
.auth-card label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 5px;
    display: block;
}

/* Form Inputs */
.auth-card .form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-card .form-control:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15,118,110,0.15);
}

/* Buttons */
.auth-card .btn {
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 10px 16px;
}

.auth-card .btn-primary {
    background-color: #002147;
    border-color: #002147;
}

.auth-card .btn-primary:hover {
    background-color: #001530;
    border-color: #001530;
}

.auth-card .btn-accent {
    background-color: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

.auth-card .btn-accent:hover {
    background-color: #115e59;
    border-color: #115e59;
}

/* Checkbox styling */
.form-check-label {
    font-size: 0.9rem;
    color: #374151;
}

.form-check-input:checked {
    background-color: #0f766e;
    border-color: #0f766e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .auth-card .form-control {
        font-size: 0.9rem;
    }

    .auth-card h5 {
        font-size: 1.1rem;
    }
}

/* Additional helper for small text */
.auth-card p.text-muted {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 8px;
}

/* ==============================
   BREADCRUMB
================================ */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6b7280;
    padding: 0 6px;
}

.breadcrumb a {
    color: #0f766e;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #115e59;
    text-decoration: underline;
}

.breadcrumb .breadcrumb-item.active {
    color: #374151;
    font-weight: 500;
}

/* ==============================
   DASHBOARD CARD (AUTHOR PAGES)
================================ */
.dashboard-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 25px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    display: block;
}

.dashboard-card h5 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #002147;
}

/* ==============================
   SIDEBAR COLLAPSE (STEP 0)
================================ */

/* Collapsed width */
.dashboard-wrapper.sidebar-collapsed .dashboard-sidebar {
    width: 70px;
    padding: 25px 10px;
}

/* Hide text when collapsed */
.dashboard-wrapper.sidebar-collapsed .menu-text,
.dashboard-wrapper.sidebar-collapsed .sidebar-brand h4,
.dashboard-wrapper.sidebar-collapsed .sidebar-brand small {
    display: none;
}

/* Center icons */
.dashboard-wrapper.sidebar-collapsed .sidebar-menu a {
    justify-content: center;
}

.dashboard-wrapper.sidebar-collapsed .sidebar-menu a i {
    margin-right: 0;
    font-size: 1.25rem;
}

/* Smooth transition */
.dashboard-sidebar {
    transition: width 0.25s ease, padding 0.25s ease;
}

/* ==============================
   SIDEBAR COLLAPSE – CLICK FIX
================================ */

/* Ensure sidebar items remain clickable */
.dashboard-sidebar {
    position: relative;
    overflow: visible;
}

/* Anchor must fully occupy visible sidebar width */
.dashboard-wrapper.sidebar-collapsed .sidebar-menu li a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

/* Prevent invisible text blocking clicks */
.dashboard-wrapper.sidebar-collapsed .menu-text {
    display: none;
}

/* Ensure icons stay inside hitbox */
.dashboard-wrapper.sidebar-collapsed .sidebar-menu li a i {
    pointer-events: none; /* click goes to <a>, not icon */
}
/* ==============================
   SIDEBAR ICON FIX (CRITICAL)
================================ */

/* Always show icons */
.sidebar-menu i {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1;
}

/* Normal mode */
.dashboard-sidebar .sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Collapsed mode */
.dashboard-wrapper.sidebar-collapsed .sidebar-menu li a {
    justify-content: center;
    padding: 12px 0;
}

/* Hide text ONLY */
.dashboard-wrapper.sidebar-collapsed .menu-text {
    display: none;
}

/* Icon must remain visible */
.dashboard-wrapper.sidebar-collapsed .sidebar-menu i {
    font-size: 1.3rem;
    color: #ffffff;
    display: inline-block;
}

/* Prevent icon stealing clicks */
.dashboard-wrapper.sidebar-collapsed .sidebar-menu i {
    pointer-events: none;
}
/* ==============================
   SIDEBAR BRAND + TOGGLE
================================ */

.sidebar-brand {
    margin-bottom: 25px;
}

/* Mini brand hidden by default */
.sidebar-brand .brand-mini {
    display: none;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Toggle button */
.sidebar-toggle {
    border: none;
    font-size: 1rem;
    padding: 4px 8px;
}

/* Brand icon in collapsed sidebar */
.sidebar-brand .brand-mini i {
    font-size: 1.4rem;
    color: #ffffff;
    cursor: pointer;
}

/* Ensure tooltip appears above sidebar */
.tooltip {
    z-index: 9999;
}

.dashboard-wrapper:not(.sidebar-collapsed) .brand-mini i {
    pointer-events: none;
}


/* Collapsed mode */
.dashboard-wrapper.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.dashboard-wrapper.sidebar-collapsed .sidebar-brand .brand-full {
    display: none;
}

.dashboard-wrapper.sidebar-collapsed .sidebar-brand .brand-mini {
    display: block;
    color: #ffffff;
}

.dashboard-wrapper.sidebar-collapsed .sidebar-toggle {
    font-size: 1.1rem;
    padding: 2px 6px;
}

.dashboard-sidebar.sidebar-collapsed .sidebar-menu li.active > a {
    background-color: rgba(255,255,255,0.2);
}


/* Active Sidebar Menu Item */
.sidebar-menu li.active > a {
    background-color: rgba(255,255,255,0.15);
    color: #ffffff;
    font-weight: 600;
}

/* Active icon color if needed */
.sidebar-menu li.active > a i {
    color: #ffffff;
}

/* Optional: subtle left border for active item */
.sidebar-menu li.active > a::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background-color: #0f766e;
    border-radius: 0 4px 4px 0;
}

/* Collapsed sidebar */
.dashboard-sidebar.collapsed {
    width: 70px;
    padding: 15px 10px;
}

.dashboard-sidebar.collapsed .brand-full,
.dashboard-sidebar.collapsed .menu-text {
    display: none;
}

.dashboard-sidebar.collapsed .brand-mini {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.dashboard-sidebar.collapsed .sidebar-menu li a {
    justify-content: center;
    padding: 10px 0;
}

.dashboard-sidebar .sidebar-menu li.active > a {
    background-color: rgba(255,255,255,0.2);
}
