/* admin-suite documentation page style */
:root {
    --header-bg: #161b22;
    --primary-bg: #0d1117;
    --text-color: #c9d1d9;
    --secondary-bg: #161b22;
    --accent-hover: #79b8ff;
    --border-color: #30363d;
    --accent-color: #6186b1ff;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--primary-bg);
    font-family: var(--font-family);
    color: var(--text-color);
    padding: 0;
    margin: 0;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    min-height: 40px;
    background-color: #4b5563;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #6b7280;
}

.container {
    margin: 0 auto;
    padding: 0 10px;
    max-width: 1400px;
}

header {
    padding: 15px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

header h1 {
    font-weight: 700;
    font-size: 1.8em;
    margin: 0;
}

#navbar {
    top: 0;
    z-index: 1000;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
    background-color: rgba(22, 27, 34, 0.8);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
}

#hero-section {
    background: radial-gradient(ellipse at center, rgba(13, 17, 23, 0.4) 0%, rgba(13, 17, 23, 0.8) 100%);
    border-bottom: 1px solid var(--border-color);
    min-height: 100vh;
    border-radius: 0;
    padding: 0 20px;
    color: #fff;
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero-section::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    height: 100%;
    filter: blur(5px);
    animation: kenburns 20s ease-out infinite alternate;
    background: url('assets/admin-suite-preview/1-dashboard.png') no-repeat center center/cover;
}

#hero-section h3 {
    font-size: 2.5em;
    font-weight: 300;
    color: #ced8e2ff;
    margin-bottom: 10px;
}

.hero-buttons {
    margin-top: 20px;
}

.button {
    color: #fff;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 8px;
    display: inline-block;
    text-decoration: none;
    background-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s, text-decoration 0.3s;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

h1, h2, h3, h4 {
    margin-top: 0;
    font-weight: 600;
}

h2 {
    font-size: 2.5em;
    padding-bottom: 5px;
    margin-bottom: 10px;
    display: inline-block;
    color: var(--accent-color);
}

#navbar {
    top: 0;
    z-index: 1000;
    position: sticky;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
    background-color: rgba(22, 27, 34, 0.8);
    border-bottom: 1px solid var(--border-color);
}

#nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#navbar li {
    margin: 5px 15px;
}

#navbar a {
    padding: 5px 0;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
    color: var(--text-color);
    border-bottom: 2px solid transparent;
}

#navbar a:hover, #navbar a.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.mobile-nav-header {
    display: none;
}

.menu-toggle {
    cursor: pointer;
    background: none;
    padding: 8px 12px;
    border-radius: 5px;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s, border-color 0.3s;
}

.menu-toggle:hover {
    border-color: var(--accent-color);
    background-color: var(--secondary-bg);
}

.icon-bars {
    width: 22px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bar {
    width: 100%;
    height: 2px;
    display: block;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
}

.menu-toggle.active .icon-bars {
    display: none;
}

.close-text {
    display: none;
    font-size: 1em;
    font-weight: bold;
}

.menu-toggle.active .close-text {
    display: block;
}

main {
    padding: 20px 0;
}

section {
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    scroll-margin-top: 90px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    background-color: rgba(32, 39, 49, 0.6);
    border: 1px solid rgba(48, 54, 61, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

section:hover {
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.suite-configuration {
    margin-top: 20px;
}

.preview-section {
    gap: 5px;
    padding: 20px;
    display: flex;
    border-radius: 5px;
    flex-direction: column;
    background-color: rgba(32, 39, 49, 0.6);
    border: 1px solid rgba(48, 54, 61, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#preview {
    padding: 20px;
    border-radius: 5px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(48, 54, 61, 0.5);
    background-color: rgba(32, 39, 49, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#preview .preview-description {
    margin-top: -8px !important;
}

.preview-grid {
    gap: 50px;
    display: flex;
    flex-direction: column;
}

.preview-card {
    padding: 30px;
    border-radius: 18px;
    border: 1px solid rgba(63, 71, 86, 0.8);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.95), rgba(22, 27, 34, 0.85));
}

.preview-card h3 {
    color: #f4f7ff;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    letter-spacing: 0.02em;
    font-size: clamp(1.4em, 2.5vw, 2.1em);
    border-bottom: 2px solid rgba(97, 134, 177, 0.6);
    text-transform: uppercase;
    word-break: break-word;
}

.preview-media {
    outline: none;
    overflow: hidden;
    position: relative;
    margin: 0 0 20px 0;
    border-radius: 14px;
    background: rgba(13, 17, 23, 0.6);
}

.preview-media:focus {
    outline: none;
}

.preview-media:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 6px;
}

.preview-media img {
    width: 100%;
    display: block;
    border-radius: 14px;
}

.preview-slider {
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.preview-slider .preview-slide {
    display: none;
    width: 100%;
}

.preview-slider .preview-slide.active {
    display: block;
}

.preview-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    cursor: pointer;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transform: translateY(-50%);
    background: rgba(12, 16, 22, 0.88);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    font-size: 18px;
    line-height: 1;
    outline: none;
}

.preview-control:hover {
    color: #fff;
    background: rgba(97, 134, 177, 0.92);
    transform: translateY(-50%) scale(1.05);
}

.preview-control:focus-visible {
    outline-offset: 2px;
    outline: 2px solid rgba(121, 184, 255, 0.9);
}

.preview-control-prev {
    left: 15px;
}

.preview-control-next {
    right: 15px;
}

.preview-dots {
    left: 0;
    right: 0;
    gap: 8px;
    z-index: 2;
    bottom: 16px;
    display: flex;
    position: absolute;
    pointer-events: none;
    justify-content: center;
}

.preview-dot {
    padding: 0;
    width: 10px;
    height: 10px;
    cursor: pointer;
    border-radius: 50%;
    pointer-events: auto;
    background: rgba(13, 17, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.preview-dot.active {
    transform: scale(1.2);
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.preview-body {
    max-width: 960px;
}

.preview-body p {
    margin-top: 0;
    margin-bottom: 12px;
}

.preview-body ul {
    margin: 0;
    padding-left: 20px;
}

.preview-body ul li {
    line-height: 1.7;
    margin-bottom: 8px;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    justify-content: center;
    align-items: center;
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 5000;
    max-width: 100%;
    padding: 40px 20px;
    overflow: hidden;
    box-sizing: border-box;
    background-color: rgba(5, 7, 11, 0.95);
}

.lightbox.visible {
    display: flex;
}

.lightbox-content {
    gap: 16px;
    width: 100%;
    padding: 20px;
    display: flex;
    margin: 0 auto;
    max-width: 1200px;
    text-align: center;
    align-items: stretch;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: flex-start;
    max-height: calc(100vh - 80px);
}

.lightbox-media {
    width: 100%;
    display: flex;
    position: relative;
    justify-content: center;
}

.lightbox-slide-label {
    margin: 0;
    font-size: 0.85em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.lightbox-img {
    flex-shrink: 0;
    max-width: 100%;
    border-radius: 12px;
    max-height: calc(100vh - 240px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
    color: #e5ecff;
    margin: 0 auto;
    width: 100%;
    max-width: 70ch;
    padding: 15px 20px;
    border-radius: 10px;
    max-height: calc(100vh - 240px);
    background-color: rgba(13, 17, 23, 0.8);
    box-sizing: border-box;
    word-break: break-word;
    overflow-y: auto;
}

.lightbox-caption h3 {
    margin: 0 0 10px 0;
    color: var(--accent-color);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    color: #fff;
    border: none;
    cursor: pointer;
    position: absolute;
    width: 48px;
    height: 48px;
    font-size: 28px;
    border-radius: 50%;
    padding-top: 5px !important;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    display: flex;
    z-index: 1000;  
    padding: 0;
}

.lightbox-close {
    top: 15px;
    right: 35px;
    font-size: 32px;
}

.lightbox-prev {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

.preview-media {
    cursor: zoom-in;
}

@media (max-height: 700px) {
    .lightbox {
        padding: 20px 10px;
    }
    .lightbox-content {
        max-height: calc(100vh - 40px);
        gap: 12px;
    }
    .lightbox-img {
        max-height: calc(100vh - 200px);
    }
    .lightbox-caption {
        max-height: calc(100vh - 220px);
    }
}

code {
    padding: 3px 6px;
    border-radius: 5px;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    font-family: "Courier New", Courier, monospace;
}

pre {
    padding: 20px;
    overflow-x: auto;
    border-radius: 10px;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
}

pre code {
    padding: 0;
    border: none;
    background-color: transparent;
}

.site-footer {
    padding: 20px;
    color: #8b949e;
    text-align: center;
    background-color: var(--header-bg);
    border-top: 1px solid var(--border-color);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.no-border:hover {
    background-color: rgba(32, 39, 49, 0.6);
    border: 1px solid rgba(48, 54, 61, 0.5);
}

#scrollToTopBtn {
    position: fixed;
    cursor: pointer;
    display: none;
    outline: none;
    color: white;
    border: none;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    justify-content: center;
    align-items: center;
}

#scrollToTopBtn:hover {
    transform: translateY(-3px);
    background-color: var(--accent-hover);
}

#scrollToTopBtn:focus {
    outline: none !important;
    box-shadow: none !important;
}

table {
    width: 100%;
    margin-top: 20px;
    overflow: hidden; 
    border-radius: 8px;
    border-collapse: collapse;
    background-color: var(--secondary-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

th, td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--header-bg);
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9em;
}

tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.1); 
}

tr:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

td {
    color: var(--text-color);
    font-size: 0.95em;
}

@media (max-width: 800px) {
    .phone-none {
        display: none !important;
    }
    #scrollToTopBtn {
        display: none !important;
    }
    body {
        overflow-x: hidden;
    }
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    ::-webkit-scrollbar-thumb {
        min-height: 40px;
    }
    h2 {
        font-size: 2em;
    }
    #nav-list {
        position: absolute;
        display: none;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px 0;
        align-items: center;
        flex-direction: column;
        background-color: var(--header-bg);
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }
    .mobile-nav-header {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .mobile-menu-title {
        font-size: 1.2em;
        font-weight: bold;
    }
    #nav-list.active {
        display: flex;
    }
    #navbar li {
        margin: 10px 0;
    }
    .preview-card {
        padding: 20px;
    }
    .preview-media {
        border-radius: 10px;
        cursor: zoom-in;
    }
    .preview-control {
        width: 34px;
        height: 34px;
    }
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        padding-top: -2px !important;
    }
    .preview-dots {
        bottom: 10px;
    }
    .lightbox-content {
        max-width: 95vw;
    }
    .lightbox-img {
        max-height: 60vh;
    }
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    background-color: var(--primary-bg);
}

.spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid var(--border-color);
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes kenburns {
    0% {
        transform: scale(1.05) translate(0, 0);
    }
    100% {
        transform: scale(1.2) translate(-5%, -5%);
    }
}
