:root {
    --friendly-primary: #4a90e2;
    --friendly-secondary: #f5f7fa;
    --friendly-text: #333333;
    --friendly-text-muted: #6c757d;
    --sidebar-width: 250px;
    --navbar-height: 50px;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #F8FAFC;
    /* Softer gradient */
    margin: 0;
    padding: 0;
    color: var(--friendly-text);
}
.font-family-A2z {
    font-family: 'A2z';
}

.font-family-Noto {
    font-family: 'Noto Sans KR';
}

.header-wrapper,
.page-body-wrapper {
    margin: 0 auto;
    max-width: 1400px;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    padding-bottom: 0 !important;
    height: 100%;
}

.table-light tr * {
    color: #94A3B8;
}

/* Navbar */
.navbar {
    background: #fff;
    height: var(--navbar-height);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.navbar-brand-wrapper {
    width: var(--sidebar-width);
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 0 1rem;
}

.navbar-brand,
.main-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--friendly-primary) !important;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.navbar-menu-wrapper {
    height: var(--navbar-height);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
        border-bottom: 1px solid var(--bs-border-color);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-height: calc(100vh - var(--navbar-height));
    border-right: 1px solid var(--bs-border-color);
}

.center-nm {
    width: calc(100% - 1.5rem);
    padding: 0.5rem;
    margin: 0 auto;
}

.leader-profile {
    width: calc(100% - 1.5rem);
    border-bottom: 1px solid #F1F5F9;
    margin: 0 auto;
    aspect-ratio: 1 / 0.85;
}

.leader-profile .profile-photo {
    width: 85px;
    margin: 0 auto;
    height: 85px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 4px solid transparent;
    border-radius: 9999px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #F8FAFC, #fff) border-box;
}

.profile-photo>* {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar .nav {
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.sidebar .nav-category {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem !important;
}

.sidebar .nav-item {
    padding: 0 0.5rem;
}

.sidebar .nav-item .nav-link {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.75rem;
    color: #555;
    border-radius: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.sidebar .nav-item .nav-link i.menu-icon {
    font-size: 1.3rem;
    margin-right: 1rem;
    color: #999;
    transition: color 0.2s ease;
}

.sidebar .nav-item .nav-link:hover,
.sidebar .nav-item .nav-link.active {
    background-color: aliceblue;
    /* Very light blue bg */
    color: var(--friendly-primary);
}

.sidebar .nav-item .nav-link:hover i.menu-icon,
.sidebar .nav-item .nav-link.active i.menu-icon {
    color: var(--friendly-primary);
}

.btn-box .btn {
    border-radius: 9999px !important;
    display: block;
    width: 100%;
    padding: 0.7rem !important;
        color: #fff;
        font-size: 0.9em;
}

/* Main Content */
.main-panel {
    margin-left: var(--sidebar-width);
    margin-top: var(--navbar-height);
    padding: 1rem;
    /* More padding */
    min-height: calc(100vh - var(--navbar-height));
    transition: all 0.3s;
}

/* Mobile */
@media (min-width:768px) {
    .navbar-brand-wrapper {
        padding: 0;
            border-right: 1px solid var(--bs-border-color);
    }
}



/* Buttons */
.btn-group-fill {
    background-color: #F1F5F9;
    border-radius: 9999px;
    padding: 0.25em;
    flex-shrink: 0 !important;
}

.btn-group.btn-group-fill>.btn {
    --bs-btn-color: #64748B;
    --bs-btn-border-color: none;
    --bs-btn-hover-color: #2563EB;
    --bs-btn-active-color: #2563EB;
    --bs-btn-active-bg: #fff;
    --bs-btn-active-border-color: transparent;
    --bs-btn-active-shadow: 0 1px 2px 0px rgba(0, 0, 0, 0.05);
    --bs-btn-disabled-color: #2563EB;
    --bs-btn-disabled-bg: transparent;
    --bs-gradient: none border: 0px !important;
    border-radius: 9999px !important;
    font-size: 0.85rem;
    padding-left: 1em;
    padding-right: 1em;
}

.btn-group.btn-group-fill>.btn-check:checked+.btn,
.btn-group.btn-group-fill>.btn.active,
.btn-group.btn-group-fill>.btn.show,
.btn-group.btn-group-fill>.btn:first-child:active,
.btn-group.btn-group-fill> :not(.btn-check)+.btn:active {
    color: var(--bs-btn-active-color) !important;
    box-shadow: var(--bs-btn-active-shadow);
}
.btn-primary {
    background-color: var(--friendly-primary);
    border-color: var(--friendly-primary);
    border-radius: 0.75rem;
    padding: 0.6rem 1.2rem;
}

.btn-primary:hover {
    background-color: #357abd;
    border-color: #357abd;
    box-shadow: 0 6px 8px rgba(74, 144, 226, 0.3);
}

.bg-primary {
    background-color: var(--friendly-primary) !important
}

.welcome-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--friendly-text);
}

.bg-light-danger {
    background-color: #FFF1F2 !important;
}

.bg-light-danger.hoverable:hover {
    background-color: #ffd7ce !important;
}

.btn.btn-light-danger {
    color: #E52E4D;
    border-color: #FFF0ED;
    background-color: #FFF0ED;
}

.btn.btn-light-danger i,
.btn.btn-light-danger .svg-icon {
    color: #E52E4D;
}

.btn.btn-light-danger.dropdown-toggle:after {
    color: #E52E4D;
}

.btn.btn-light-dark {
    color: #211F1C;
    border-color: var(--bs-border-color);
    background-color: #E2E8F0;
}

.btn.btn-light-dark i,
.btn.btn-light-dark .svg-icon {
    color: #211F1C;
}

.btn.btn-light-dark.dropdown-toggle:after {
    color: #211F1C;
}

.badge.badge-light-green {
    background-color: #ebf8f3;
    color: #059669;
}
/* Friendly UI Utilities */
.transition-base {
    transition: all 0.3s ease;
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

/* Friendly Colors */
.bg-primary-subtle {
    background-color: #cfe2ff !important;
}

.bg-success-subtle {
    background-color: #d1e7dd !important;
}

.bg-info-subtle {
    background-color: #cff4fc !important;
}

.bg-light-primary {
    background-color: #E9F3FF;
}

.bg-light-green {
    background-color: #ebf8f3;
}

.text-green {
    color: #059669;
}
.text-friendly-primary {
    color: var(--friendly-primary);
}
/* Dashboard Tabs */
.nav-pills .nav-link.active {
    background-color: var(--friendly-primary);
}

.nav-pills .nav-link {
    color: #6c757d;
    transition: all 0.2s ease;
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: #e9ecef;
    color: var(--friendly-primary);
}