/* =========================================================
   H-REGEDIT DASHBOARD
   STYLE.CSS
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --bg-main: #080b12;
    --bg-sidebar: #0b0f17;
    --bg-card: #0e131d;
    --bg-card-hover: #111824;

    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(48, 132, 255, 0.35);

    --primary: #2684ff;
    --primary-light: #5aa3ff;
    --primary-dark: #1464d2;

    --text-main: #f1f5fb;
    --text-secondary: #8994a6;
    --text-muted: #5e6878;

    --success: #32d583;

    --sidebar-width: 270px;

    --radius: 12px;

    --transition: 0.25s ease;

}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family: "Inter", sans-serif;

    background: var(--bg-main);

    color: var(--text-main);

    min-height: 100vh;

    overflow-x: hidden;

}


button,
a {
    font-family: inherit;
}


button {
    border: none;
}


a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   DASHBOARD
========================================================= */

.dashboard {

    display: flex;

    min-height: 100vh;

    width: 100%;

}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {

    width: var(--sidebar-width);

    min-width: var(--sidebar-width);

    height: 100vh;

    position: fixed;

    left: 0;
    top: 0;

    display: flex;

    flex-direction: column;

    background: var(--bg-sidebar);

    border-right: 1px solid var(--border);

    z-index: 100;

}


/* =========================================================
   SIDEBAR HEADER
========================================================= */

.sidebar-header {

    height: 82px;

    padding: 0 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--border);

}


.logo {

    display: flex;

    align-items: center;

    gap: 11px;

}


.logo-icon {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: linear-gradient(
        145deg,
        var(--primary),
        var(--primary-dark)
    );

    color: white;

    font-size: 17px;

    font-weight: 800;

    box-shadow:
        0 6px 20px rgba(38, 132, 255, 0.22);

}


.logo-text {

    display: flex;

    flex-direction: column;

    gap: 2px;

}


.logo-text span {

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 0.6px;

}


.logo-text small {

    font-size: 10px;

    color: var(--text-muted);

    font-weight: 500;

}


.sidebar-close {

    display: none;

}


/* =========================================================
   NAVIGATION
========================================================= */

.navigation {

    flex: 1;

    padding: 20px 12px;

    overflow-y: auto;

}


/* Scrollbar */

.navigation::-webkit-scrollbar {

    width: 4px;

}


.navigation::-webkit-scrollbar-thumb {

    background: rgba(255, 255, 255, 0.08);

    border-radius: 20px;

}


/* =========================================================
   NAV TITLE
========================================================= */

.nav-title {

    padding: 0 11px;

    margin-bottom: 8px;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.3px;

    color: var(--text-muted);

}


.second-title {

    margin-top: 26px;

}


/* =========================================================
   NAV ITEM
========================================================= */

.nav-item {

    width: 100%;

    min-height: 44px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 12px;

    margin-bottom: 3px;

    border-radius: 9px;

    background: transparent;

    color: var(--text-secondary);

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition);

}


.nav-item-content {

    display: flex;

    align-items: center;

    gap: 12px;

}


.nav-item-content i {

    width: 18px;

    text-align: center;

    font-size: 14px;

}


.nav-item span {

    font-size: 12px;

    font-weight: 500;

}


/* Hover */

.nav-item:hover {

    background: rgba(255, 255, 255, 0.035);

    color: var(--text-main);

}


/* Active */

.nav-item.active {

    color: white;

    background: rgba(38, 132, 255, 0.11);

}


.nav-item.active .nav-item-content i {

    color: var(--primary-light);

}


/* =========================================================
   DROPDOWN
========================================================= */

.dropdown-toggle {

    outline: none;

}


.arrow {

    font-size: 9px !important;

    transition:
        transform var(--transition);

}


.nav-group.open .arrow {

    transform: rotate(90deg);

    color: var(--primary-light);

}


/* =========================================================
   SUBMENU
========================================================= */

.submenu {

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition:
        max-height 0.3s ease,
        opacity 0.2s ease;

}


.nav-group.open .submenu {

    max-height: 400px;

    opacity: 1;

}


.submenu a {

    min-height: 37px;

    display: flex;

    align-items: center;

    gap: 11px;

    padding-left: 43px;

    padding-right: 10px;

    border-radius: 8px;

    color: var(--text-muted);

    font-size: 11px;

    font-weight: 500;

    transition:
        background var(--transition),
        color var(--transition);

}


.submenu a i {

    width: 15px;

    text-align: center;

    font-size: 11px;

}


.submenu a:hover {

    background: rgba(38, 132, 255, 0.07);

    color: var(--primary-light);

}


/* =========================================================
   SIDEBAR FOOTER
========================================================= */

.sidebar-footer {

    padding: 13px;

    border-top: 1px solid var(--border);

}


.user-card {

    min-height: 55px;

    padding: 8px;

    display: flex;

    align-items: center;

    gap: 9px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.025);

}


.user-avatar {

    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(38, 132, 255, 0.13);

    color: var(--primary-light);

    font-size: 12px;

    font-weight: 700;

}


.user-info {

    min-width: 0;

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.user-info strong {

    font-size: 11px;

    font-weight: 600;

}


.user-info span {

    font-size: 9px;

    color: var(--text-muted);

}


.user-menu {

    background: transparent;

    color: var(--text-muted);

    cursor: pointer;

    padding: 5px;

}


.user-menu:hover {

    color: var(--text-main);

}


/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {

    width: calc(100% - var(--sidebar-width));

    margin-left: var(--sidebar-width);

    min-height: 100vh;

}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 35px;

    border-bottom: 1px solid var(--border);

    background: rgba(8, 11, 18, 0.92);

    position: sticky;

    top: 0;

    z-index: 50;

    backdrop-filter: blur(15px);

}


/* Breadcrumb */

.breadcrumb {

    display: flex;

    align-items: center;

    gap: 9px;

    font-size: 11px;

    color: var(--text-muted);

}


.breadcrumb i {

    font-size: 7px;

}


.breadcrumb strong {

    color: var(--text-secondary);

    font-weight: 600;

}


/* Top actions */

.topbar-actions {

    display: flex;

    align-items: center;

    gap: 18px;

}


.icon-button {

    width: 35px;
    height: 35px;

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: transparent;

    color: var(--text-secondary);

    cursor: pointer;

    transition: var(--transition);

}


.icon-button:hover {

    background: rgba(255, 255, 255, 0.04);

    color: white;

}


.notification-dot {

    width: 5px;
    height: 5px;

    position: absolute;

    top: 8px;
    right: 8px;

    border-radius: 50%;

    background: var(--primary);

}


/* Status */

.status {

    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 10px;

    color: var(--text-muted);

}


.status-dot {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 8px rgba(50, 213, 131, 0.5);

}


/* Mobile button */

.mobile-menu {

    display: none;

}


/* =========================================================
   CONTENT
========================================================= */

.content {

    padding: 38px;

    max-width: 1500px;

}


/* =========================================================
   PAGE
========================================================= */

.page {

    display: none;

    animation: pageIn 0.3s ease;

}


.page.active-page {

    display: block;

}


@keyframes pageIn {

    from {

        opacity: 0;

        transform: translateY(8px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* =========================================================
   PAGE HEADER
========================================================= */

.page-header {

    margin-bottom: 30px;

}


.page-label {

    display: block;

    margin-bottom: 9px;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: var(--primary-light);

}


.page-header h1 {

    margin-bottom: 8px;

    font-size: 27px;

    font-weight: 700;

    letter-spacing: -0.7px;

}


.page-header p {

    max-width: 650px;

    color: var(--text-secondary);

    font-size: 12px;

    line-height: 1.7;

}


/* =========================================================
   DASHBOARD GRID
========================================================= */

.dashboard-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 42px;

}


/* =========================================================
   DASHBOARD CARD
========================================================= */

.dashboard-card {

    min-height: 175px;

    display: flex;

    gap: 18px;

    padding: 23px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--bg-card);

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);

}


.dashboard-card:hover {

    transform: translateY(-3px);

    border-color: var(--border-hover);

    background: var(--bg-card-hover);

}


/* Card icon */

.card-icon {

    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-size: 16px;

}


.card-icon.rocket {

    color: #5aa3ff;

    background: rgba(38, 132, 255, 0.1);

}


.card-icon.settings {

    color: #7c9cff;

    background: rgba(124, 156, 255, 0.1);

}


.card-icon.tools {

    color: #65d5aa;

    background: rgba(101, 213, 170, 0.09);

}


.card-icon.package {

    color: #b28cff;

    background: rgba(178, 140, 255, 0.09);

}


/* Card content */

.card-content {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


.card-content h3 {

    margin-bottom: 7px;

    font-size: 14px;

    font-weight: 650;

}


.card-content p {

    margin-bottom: 17px;

    max-width: 350px;

    color: var(--text-secondary);

    font-size: 11px;

    line-height: 1.6;

}


/* Card button */

.card-link {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 0;

    background: transparent;

    color: var(--primary-light);

    font-size: 10px;

    font-weight: 600;

    cursor: pointer;

}


.card-link i {

    font-size: 8px;

    transition: transform var(--transition);

}


.card-link:hover i {

    transform: translateX(3px);

}


/* =========================================================
   SECTION HEADER
========================================================= */

.section-header {

    margin-bottom: 17px;

}


.section-header h2 {

    font-size: 16px;

    font-weight: 650;

}


/* =========================================================
   INFO GRID
========================================================= */

.info-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

}


.info-card {

    display: flex;

    gap: 14px;

    padding: 19px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--bg-card);

}


.info-card > i {

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(38, 132, 255, 0.08);

    color: var(--primary-light);

    font-size: 13px;

}


.info-card h3 {

    margin-bottom: 5px;

    font-size: 11px;

    font-weight: 600;

}


.info-card p {

    color: var(--text-muted);

    font-size: 9px;

    line-height: 1.6;

}


/* =========================================================
   EMPTY PAGE
========================================================= */

.empty-page {

    min-height: 330px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 40px;

    border: 1px dashed rgba(255, 255, 255, 0.08);

    border-radius: var(--radius);

    text-align: center;

}


.empty-page > i {

    margin-bottom: 18px;

    font-size: 30px;

    color: var(--primary);

}


.empty-page h2 {

    margin-bottom: 8px;

    font-size: 17px;

}


.empty-page p {

    max-width: 400px;

    color: var(--text-secondary);

    font-size: 11px;

    line-height: 1.7;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .info-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 850px) {

    :root {

        --sidebar-width: 270px;

    }


    .sidebar {

        transform: translateX(-100%);

        transition:
            transform 0.3s ease;

    }


    .sidebar.mobile-open {

        transform: translateX(0);

        box-shadow:
            15px 0 50px rgba(0, 0, 0, 0.4);

    }


    .sidebar-close {

        width: 32px;
        height: 32px;

        display: flex;

        align-items: center;
        justify-content: center;

        border-radius: 8px;

        background: rgba(255, 255, 255, 0.04);

        color: var(--text-secondary);

        cursor: pointer;

    }


    .main-content {

        width: 100%;

        margin-left: 0;

    }


    .mobile-menu {

        width: 35px;
        height: 35px;

        display: flex;

        align-items: center;
        justify-content: center;

        margin-right: 15px;

        border-radius: 8px;

        background: rgba(255, 255, 255, 0.04);

        color: var(--text-secondary);

        cursor: pointer;

    }


    .topbar {

        justify-content: flex-start;

        padding: 0 20px;

    }


    .topbar-actions {

        margin-left: auto;

    }


    .content {

        padding: 28px 20px;

    }

}


@media (max-width: 650px) {

    .dashboard-grid {

        grid-template-columns: 1fr;

    }


    .info-grid {

        grid-template-columns: 1fr;

    }


    .page-header h1 {

        font-size: 23px;

    }


    .status {

        display: none;

    }


    .topbar {

        height: 62px;

    }


    .content {

        padding: 24px 16px;

    }


    .dashboard-card {

        min-height: auto;

    }

}


@media (max-width: 420px) {

    .breadcrumb span {

        display: none;

    }


    .dashboard-card {

        padding: 18px;

        gap: 13px;

    }


    .card-icon {

        width: 38px;
        height: 38px;

        font-size: 14px;

    }

}

