/* Custom Styles for OJS */

/* Base font styles */
html {
    scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
    font-family: Calibri, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
}

.dark body,
.dark button,
.dark input,
.dark select,
.dark textarea {
    background-color: #0f172a;
    color: #f3f4f6;
}

/* Styling for the login block */
.login-block {
    display: flex;
    align-items: center;
    background: linear-gradient(
        to right,
        #b3cdfe 0%,
        #7199f1 30%,
        #a199e6 50%,
        #f99bce 70%,
        #fecbea 100%
    );
    padding: 20px 25px;
    border-radius: 4px;
    margin: 10px 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #fff;
}

.dark .login-block {
    background: linear-gradient(
        to right,
        #1e3a8a 0%,
        #3b82f6 30%,
        #6366f1 50%,
        #ec4899 70%,
        #f472b6 100%
    );
    color: #f3f4f6;
}

/* Styling for the indicator bar */
.login-block-indicator {
    width: 5px;
    background-color: #fff;
    height: 100%;
    margin-right: 10px;
}

.dark .login-block-indicator {
    background-color: #f3f4f6;
}

/* Styling for links */
.login-block-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.dark .login-block-link {
    color: #c084fc;
}

.login-block-link:hover {
    color: black;
}

.dark .login-block-link:hover {
    color: #f472b6;
}

/* Styling for dynamic action (e.g., "submission", "review", etc.) */
.dynamic-action {
    color: inherit;
}

/* Heading styles */
.custom-heading {
    font-size: 2rem;
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.dark .custom-heading {
    color: #f3f4f6;
}

/* Image wrapper */
.custom-image-wrapper {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

/* Image styles */
.custom-image {
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
    height: auto;
}

.dark .custom-image {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    background-color: #1e293b;
}

.custom-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.dark .custom-image:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Container styles */
.custom-container {
    font-family: Arial, sans-serif;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
    background-color: #ffffff;
    color: #333;
}

.dark .custom-container {
    background-color: #0f172a;
    color: #f3f4f6;
}

/* Subheading styles */
.custom-subheading {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: justify;
    color: #333;
}

.dark .custom-subheading {
    color: #f3f4f6;
}

/* Offset untuk anchor link */
.scroll-offset {
    scroll-margin-top: 90px;
}

/* Text styles */
.custom-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: justify;
    color: #333;
}

.dark .custom-text {
    color: #f3f4f6;
}

/* Box styles */
.custom-box {
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark .custom-box {
    border-color: #334155;
    background-color: #0f172a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Item styles */
.custom-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.dark .custom-item {
    border-bottom-color: #334155;
}

.custom-item:last-child {
    border-bottom: none;
}

.custom-item:hover {
    background-color: #f1f1f1;
}

.dark .custom-item:hover {
    background-color: #1e293b;
}

/* Icon styles */
.custom-icon {
    color: purple;
    font-size: 1rem;
    margin-top: -0.2rem;
    margin-right: 1rem;
    font-weight: bold;
}

.dark .custom-icon {
    color: #c084fc;
}

/* Description styles */
.custom-description {
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    color: #333;
}

.dark .custom-description {
    color: #f3f4f6;
}

/* Link styles */
.custom-link {
    color: purple;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dark .custom-link {
    color: #c084fc;
}

.custom-link:hover {
    color: pink;
}

.dark .custom-link:hover {
    color: #f472b6;
}

/* List styles */
.custom-box ul,
.custom-box ol {
    margin-left: 1.5rem;
    padding: 0;
}

.custom-box ul li,
.custom-box ol li {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.dark .custom-box ul li,
.dark .custom-box ol li {
    color: #f3f4f6;
}

.custom-box ul li::marker,
.custom-box ol li::marker {
    color: purple;
}

.dark .custom-box ul li::marker,
.dark .custom-box ol li::marker {
    color: #c084fc;
}

/* Button Styles */
.custom-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.email-button {
    background-color: #3b82f6;
    color: white;
    font-weight: bold;
}

.detail-button {
    background-color: #f472b6;
    color: white;
    font-weight: bold;
    margin-left: 8px;
}

/* Hover Effects */
.email-button:hover {
    background-color: #b3cdfe;
}

.detail-button:hover {
    background-color: #fecbea;
}

/* Divider Styles */
.divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
    width: 100%;
}

/* Divider untuk Dark Mode */
.dark .divider {
    border-top-color: #334155;
}

/* Flexbox untuk menyusun nama dan tombol secara horizontal */
.name-and-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.buttons-no-text {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.buttons {
    display: flex;
}

/* Sembunyikan ikon di desktop, tampilkan di mobile */
.custom-menu-icon {
    display: inline-block;
}
@media (min-width: 768px) { /* md breakpoint (tablet & desktop) */
    .custom-menu-icon {
        display: none;
    }
}

/* Sembunyikan teks di mobile, tampilkan di desktop */
.custom-menu-text {
    display: none;
}
@media (min-width: 768px) { /* md breakpoint (tablet & desktop) */
    .custom-menu-text {
        display: inline-block;
    }
}
