/* 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);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
}

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

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

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

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

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

body.lightbox-open {
    overflow: hidden;
}

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

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

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

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

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

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

#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;
    padding: 15px 20px;
    position: sticky;
    backdrop-filter: blur(10px);
    background-color: rgba(22, 27, 34, 0.8);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

#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);
}

#preview {
    backdrop-filter: none !important;
    bordet-radius: none !important;
    box-shadow: none !important;
    background: none !important;
    border: none !important;
}

#preview-container {
    gap: 25px;
    display: grid;
    align-items: stretch;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.preview-item {
    display: flex;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    flex-direction: column;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(48, 54, 61, 0.5);
    background-color: rgba(22, 27, 34, 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
}

.preview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    z-index: 1;
}

.preview-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.preview-item:hover::before {
    left: 100%;
}

.preview-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.preview-item:hover img {
    transform: scale(1.05);
}

.caption {
    padding: 20px;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

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

.caption p {
    margin: 0;
    font-weight: 300;
    font-size: 0.9em;
}

.lightbox {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    overflow: auto;
    position: fixed;
    padding-top: 60px;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    width: 80%;
    margin: auto;
    display: block;
    max-width: 1200px;
    text-align: center;
}

.lightbox-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

#lightbox-caption {
    width: 80%;
    padding: 20px;
    color: #ccc;
    display: block;
    max-width: 700px;
    margin: 20px auto;
    text-align: center;
    border-radius: 8px;
    background-color: var(--secondary-bg);
}

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

#lightbox-caption p {
    margin: 0;
}

.lightbox-close {
    position: absolute;
    font-weight: bold;
    color: #f1f1f1;
    transition: 0.3s;
    cursor: pointer;
    font-size: 50px;
    right: 40px;
    top: 20px;
}

.lightbox-close:hover, .lightbox-close:focus {
    color: var(--accent-color);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    margin-top: -50px;
    cursor: pointer;
    padding: 20px;
    width: auto;
    color: white;
    top: 50%;
    font-size: 24px;
    font-weight: bold;
    user-select: none;
    transition: 0.6s ease;
    border-radius: 0 5px 5px 0;
}

.lightbox-next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--accent-color);
}

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;
    align-items: center;
    justify-content: 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;
    }
    .lightbox-content {
        width: 100%;
    }
    .caption {
        transform: translateY(0);
        background: var(--secondary-bg);
    }
}

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

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    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%);
    }
}
