/* put your own styles to customize and override the theme */
/* Modern Dashboard Layout CSS - No HTML Changes Required */

/* ===== APP STRUCTURE ===== */
.app {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== HEADER STYLES ===== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-header-dark {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #ffffff;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
}

.top-bar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.top-bar-list {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
}

.header-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.header-nav .nav-item {
    display: flex;
    align-items: center;
}

.header-nav .btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-nav .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-box {
    width: 24px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 4px;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* ===== DROPDOWN STYLES ===== */
.dropdown {
    position: relative;
}

.btn-account {
    background: none;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-account:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tile-circle {
    border-radius: 50%;
}

.tile-md {
    width: 2.5rem;
    height: 2.5rem;
}

.account-summary {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.account-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #ffffff;
}

.account-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown-header {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    gap: 0.75rem;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}

.dropdown-icon {
    width: 1rem;
    height: 1rem;
    opacity: 0.7;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

/* ===== ASIDE SIDEBAR ===== */
.app-aside {
    position: fixed;
    top: 60px;
    left: 0;
    width: 280px;
    height: calc(100vh - 60px);
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 4px 0 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.app-aside-light {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
}

.aside-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.aside-menu {
    flex: 1;
    padding: 1rem 0;
}

.stacked-menu {
    height: 100%;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 0.25rem;
}

.menu-item.mb-2 {
    margin-bottom: 0.5rem;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin: 0 0.75rem;
    gap: 0.75rem;
    position: relative;
}

.menu-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #4c63d2;
    text-decoration: none;
    transform: translateX(4px);
}

.menu-item.has-active .menu-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.menu-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.menu-text {
    flex: 1;
}

.menu-header {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

/* ===== SUBMENU STYLES ===== */
.menu-item.has-child > .menu-link::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.menu-item.has-child.active > .menu-link::after {
    transform: rotate(180deg);
}

.menu-item.has-child > .menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 0.5rem;
    margin: 0.25rem 0.75rem;
}

.menu-item.has-child.active > .menu {
    max-height: 500px;
    padding: 0.5rem 0;
}

.menu-item.has-child .menu .menu-item {
    margin-bottom: 0;
}

.menu-item.has-child .menu .menu-link {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    margin: 0;
    font-size: 0.875rem;
    border-radius: 0;
}

.menu-item.has-child .menu .menu-link:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(8px);
}

/* ===== BADGE STYLES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.375rem;
    margin-left: auto;
}

.badge-success {
    background: #22c55e;
    color: #ffffff;
}

.badge-subtle {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ===== FOOTER STYLES ===== */
.aside-footer {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.aside-footer .btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #4c63d2;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.aside-footer .btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ===== MAIN CONTENT AREA ===== */
.app-main {
    flex: 1;
    margin-left: 280px;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
}

.wrapper {
    padding: 2rem;
}

.page-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title-bar {
    margin-bottom: 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .app-aside {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .app-aside.show {
        transform: translateX(0);
    }
    
    .app-main {
        margin-left: 0;
    }
    
    .top-bar-brand .hamburger {
        display: block;
    }
    
    .account-summary {
        display: none;
    }
    
    .d-md-none {
        display: block;
    }
    
    .d-lg-none {
        display: none;
    }
    
    .d-xl-none {
        display: none;
    }
}

@media (min-width: 769px) {
    .d-md-none {
        display: none;
    }
    
    .d-lg-block {
        display: block;
    }
    
    .d-none.d-lg-block {
        display: block;
    }
}

/* ===== UTILITY CLASSES ===== */
.px-0 {
    padding-left: 0;
    padding-right: 0;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.pr-lg-4 {
    padding-right: 1rem;
}

.text-primary {
    color: #4c63d2;
}

.btn-light {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}

.btn-dark {
    background: #1e293b;
    border: 1px solid #334155;
    color: #ffffff;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.border-top {
    border-top: 1px solid #e2e8f0;
}

.p-2 {
    padding: 0.5rem;
}

.overflow-hidden {
    overflow: hidden;
}

/* ===== SCROLLBAR STYLING ===== */
.aside-menu::-webkit-scrollbar {
    width: 6px;
}

.aside-menu::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.aside-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.aside-menu::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.menu-item {
    animation: slideIn 0.3s ease-out;
}

.menu-item:nth-child(1) {
    animation-delay: 0.1s;
}

.menu-item:nth-child(2) {
    animation-delay: 0.2s;
}

.menu-item:nth-child(3) {
    animation-delay: 0.3s;
}

.menu-item:nth-child(4) {
    animation-delay: 0.4s;
}

.menu-item:nth-child(5) {
    animation-delay: 0.5s;
}

/* ===== DROPDOWN ARROW ===== */
.dropdown-arrow {
    position: absolute;
    top: -6px;
    right: 1rem;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #ffffff;
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

/* ===== HOVER STATES ===== */
.menu-item.has-child:hover > .menu-link {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #4c63d2;
}

.menu-item.has-child.has-active:hover > .menu-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

/* ===== FOCUS STATES ===== */
.menu-link:focus {
    outline: 2px solid #4c63d2;
    outline-offset: 2px;
}

.btn-account:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.hamburger:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.menu-item.loading {
    opacity: 0.5;
}

.menu-item.loading .menu-link {
    pointer-events: none;
}

/* ===== ACTIVE STATES ===== */
.menu-item.has-child.active > .menu-link {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #4c63d2;
}

.menu-item.has-child.active.has-active > .menu-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

/* ===== MOBILE MENU TOGGLE ===== */
@media (max-width: 768px) {
    .hamburger[data-toggle="aside-menu"] {
        display: none;
    }
    
    .hamburger[data-toggle="aside"] {
        display: block;
    }
}

@media (min-width: 769px) {
    .hamburger[data-toggle="aside-menu"] {
        display: block;
    }
    
    .hamburger[data-toggle="aside"] {
        display: none;
    }
}

/* ===== ADDITIONAL UTILITY CLASSES ===== */
.d-compact-menu-none {
    display: inline;
}

.header-nav-dropdown {
    position: relative;
}

.top-bar-item-right {
    margin-left: auto;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}