:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --navbar-height: 70px;
    --primary-color: #18327e;
    --sidebar-bg: #ffffff;
    --main-bg: #f8f9fa;
    --primary-btn-color: #e1a900;
}

/* Utillities */
.default-bg {
    background-color: var(--primary-color) !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--main-bg);
    overflow-x: hidden;
}

/* --- Navbar Styling --- */
.navbar-admin {
    height: var(--navbar-height);
    background-color: #250344;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1030;
}

.navbar-admin a.span {
    color: var(--sidebar-bg);
}

.search-input {
    background-color: #f3f4f6;
    border: none;
    padding-left: 2.5rem;
    border-radius: 8px;
    width: 300px;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* --- Sidebar Styling --- */
.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    background-color: var(--sidebar-bg);
    border-right: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1020;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Collapsed Sidebar State (Desktop) */
.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-heading,
.sidebar.collapsed .nav-link-custom span,
.sidebar.collapsed .nav-link-custom .bi-chevron-down {
    display: none;
}

.sidebar.collapsed .nav-link-custom {
    justify-content: center;
    padding: 0.75rem 0;
    margin: 0.2rem 0.5rem;
}

.sidebar.collapsed .nav-link-custom i {
    margin-right: 0;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 8px;
    margin: 0.2rem 1rem;
    white-space: nowrap;
}

.nav-link-custom i {
    font-size: 1.25rem;
    margin-right: 1rem;
    width: 24px;
    text-align: center;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    background-color: #eff6ff;
    color: var(--primary-color);
}

.nav-link-custom.active i {
    color: var(--primary-color);
}

.sidebar-heading {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    font-weight: 700;
}

/* Submenu styling */
.submenu .nav-link-custom {
    padding-left: 3.5rem;
    font-size: 0.9rem;
    font-weight: 400;
}

/* --- Content Area --- */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: calc(100vh - var(--navbar-height));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }

    .sidebar.show {
        left: 0;
        width: var(--sidebar-width) !important;
    }

    .sidebar.show .sidebar-heading,
    .sidebar.show .nav-link-custom span,
    .sidebar.show .nav-link-custom .bi-chevron-down {
        display: block !important;
    }

    .main-content {
        margin-left: 0 !important;
    }
}

.user-profile-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.btn {
    border-radius: 0;
}

.primary-btn-color {
    background-color: var(--primary-btn-color);
    color: #000;
}

.view-section textarea {
    resize: none;
}

.view-section td:first-child {
    font-size: 14px;
}

.ck-editor__editable {
    min-height: 200px;
    /* Mobile / default height */
    max-height: 100%;
    /* Prevent overflow on small screens */
}

/* Desktop specific */
@media (min-width: 992px) {
    .ck-editor__editable {
        height: 400px;
        /* Fixed height for desktop */
    }
}

/* AUTH */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    /* min-height: 100vh; */
}
.auth-form-container,
.auth-visual{
    min-height:100vh;
    padding: 20px;
}

.auth-visual{
    background-color: var(--primary-color);
    flex: 1;
}

.auth-form-container{
    background-color: var(--sidebar-bg);
    flex-basis: 50%;
}

@media (max-width: 768px) {
    .auth-form-container{
        flex-basis: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .auth-wrapper {
        flex-direction: column;
    }
    .auth-visual {
        display: none;
    }
}
.auth-form-container .login-card{
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
}
.auth-form-container .brand-logo{
    font-size: 1.5rem;
    display: block;
    text-align: center;
}
.auth-form-container .btn-kingschat{
    display: flex;
    justify-self: center;
    align-self: center;
}
.auth-form-container .brand-logo .subtitle{
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 400;
}
.auth-form-container label,
.auth-form-container .password-hint,
.auth-form-container form input::placeholder{
    font-size: 14px;
}
.impact-table .category-name {
    text-transform: capitalize;
}