/* Hyper Admin Theme Custom Styles & Tokens */
:root {
    --ct-body-bg: #f5f7fb;
    --ct-sidebar-bg: #313a46;
    --ct-sidebar-hover: #384250;
    --ct-sidebar-active: #727cf5;
    --ct-sidebar-text: #8391a2;
    --ct-sidebar-text-active: #ffffff;
    --ct-primary: #727cf5;
    --ct-primary-hover: #5b67f3;
    --ct-success: #0acf97;
    --ct-info: #39afd1;
    --ct-warning: #fa5c7c;
    --ct-danger: #e63757;
    --ct-card-shadow: 0 0 35px 0 rgba(154, 161, 171, 0.15);
    --ct-font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--ct-font-family);
    background-color: var(--ct-body-bg);
    color: #6c757d;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Hyper Layout Wrapper */
.wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    align-items: stretch;
}

/* Sidebar Styling */
.left-side-menu {
    width: 260px;
    background-color: var(--ct-sidebar-bg);
    min-height: 100%;
    color: var(--ct-sidebar-text);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 100;
}

.left-side-menu .logo-box {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.left-side-menu .logo-box .brand-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

.left-side-menu .logo-box .brand-subtitle {
    color: #8391a2;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.side-nav {
    padding: 15px 0;
    list-style: none;
    margin: 0;
}

.side-nav-title {
    padding: 12px 24px 8px;
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 700;
}

.side-nav-item {
    margin: 4px 14px;
}

.side-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--ct-sidebar-text);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease-in-out;
}

.side-nav-link:hover {
    color: var(--ct-sidebar-text-active);
    background-color: var(--ct-sidebar-hover);
}

.side-nav-link.active {
    color: #ffffff;
    background-color: var(--ct-sidebar-active);
    box-shadow: 0 2px 8px rgba(114, 124, 245, 0.35);
}

.side-nav-link i {
    font-size: 1.15rem;
    width: 24px;
    display: inline-flex;
    justify-content: center;
}

/* Content Page */
.content-page {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

.content-page > .container-fluid {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: 0 !important;
    background-color: #ffffff;
    border-top: 1px solid #eef2f7;
    width: 100%;
}

/* Topbar Styling */
.navbar-custom {
    background-color: #ffffff;
    height: 70px;
    padding: 0 24px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Cards & SaaS Metrics */
.card {
    border: none;
    box-shadow: var(--ct-card-shadow);
    border-radius: 10px;
    background-color: #ffffff;
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 5px 30px rgba(154, 161, 171, 0.25);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #313a46;
    margin-bottom: 1rem;
}

.widget-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.widget-icon.bg-primary-light {
    background-color: rgba(114, 124, 245, 0.12);
    color: var(--ct-primary);
}

.widget-icon.bg-success-light {
    background-color: rgba(10, 207, 151, 0.12);
    color: var(--ct-success);
}

.widget-icon.bg-warning-light {
    background-color: rgba(250, 92, 124, 0.12);
    color: var(--ct-warning);
}

.widget-icon.bg-info-light {
    background-color: rgba(57, 175, 209, 0.12);
    color: var(--ct-info);
}

.widget-icon.bg-danger-light {
    background-color: rgba(230, 55, 87, 0.12);
    color: var(--ct-danger);
}

/* Table Design */
.table-custom {
    color: #6c757d;
    vertical-align: middle;
}

.table-custom thead th {
    background-color: #f6f7fb;
    color: #6c757d;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-bottom: 1px solid #eef2f7;
    padding: 12px 16px;
}

.table-custom tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f2f4f8;
    font-size: 0.9rem;
}

.table-custom tbody tr:hover {
    background-color: #fafbfe;
}

/* Badges & Status */
.badge-soft-success {
    background-color: rgba(10, 207, 151, 0.15);
    color: #0acf97;
    font-weight: 600;
}

.badge-soft-warning {
    background-color: rgba(255, 188, 0, 0.18);
    color: #e09800;
    font-weight: 600;
}

.badge-soft-danger {
    background-color: rgba(250, 92, 124, 0.15);
    color: #fa5c7c;
    font-weight: 600;
}

.badge-soft-primary {
    background-color: rgba(114, 124, 245, 0.15);
    color: #727cf5;
    font-weight: 600;
}

.badge-soft-info {
    background-color: rgba(57, 175, 209, 0.15);
    color: #39afd1;
    font-weight: 600;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #f1f3f8;
    padding: 18px 24px;
}

.modal-footer {
    border-top: 1px solid #f1f3f8;
    padding: 16px 24px;
}

/* Form Controls */
.form-control, .form-select {
    border-color: #dee2e6;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.92rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--ct-primary);
    box-shadow: 0 0 0 0.2rem rgba(114, 124, 245, 0.18);
}

/* Buttons */
.btn-primary {
    background-color: var(--ct-primary);
    border-color: var(--ct-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--ct-primary-hover);
    border-color: var(--ct-primary-hover);
}

/* Responsive Mobile Sidebar */
@media (max-width: 991.98px) {
    .left-side-menu {
        position: fixed;
        left: -260px;
    }
    .left-side-menu.show {
        left: 0;
    }
}
