@import url('./common/themes.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--main-text);
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
}

/* Page content fade-in (excluding header) */
body > *:not(.header) {
    animation: fadeInPage 0.5s ease-in;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #059669 100%);
    color: var(--secondary-text);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.logo-text {
    color: var(--main-text);
    letter-spacing: -0.5px;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
/* Header - Always static, no animations */
.header {
    background: var(--bg-primary);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header,
.header * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: var(--sub-text);
    text-decoration: none;
    font-size: var(--fs-text-sm);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: var(--border-radius-md);
    display: inline-block;
    min-width: 90px;
}

.nav-item a:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
}

/* Dropdown Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    position: relative;
    padding-right: 28px !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: all 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle {
    color: var(--primary-color);
    background: var(--primary-light);
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    padding: 8px;
    margin-top: 4px;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

/* Create invisible bridge to prevent menu from closing */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    color: var(--sub-text);
    text-decoration: none;
    font-size: var(--fs-text-sm);
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, padding 0.2s ease;
    white-space: nowrap;
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    padding-left: 20px;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}


/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    padding: 10px;
    z-index: 101;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.hamburger-menu span {
    width: 22px;
    height: 2.5px;
    background: var(--main-text);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-menu:hover span {
    background: var(--primary-color);
}

.hamburger-menu.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.hamburger-menu.active span {
    background: white;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 968px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav-menu-wrapper .btn-primary {
        display: none;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 77px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        max-height: calc(100vh - 77px);
        overflow-y: auto;
        border-top: 1px solid var(--border-primary);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-item {
        width: 100%;
        padding: 0;
        margin-bottom: 8px;
    }
    
    .nav-item:last-child {
        margin-bottom: 0;
    }
    
    .nav-item a {
        font-size: var(--fs-text-md);
        display: block;
        width: 100%;
        padding: 12px 16px;
        border-radius: var(--border-radius-md);
    }
    
    /* Mobile Dropdown Styles */
    .nav-item.dropdown {
        position: relative;
    }
    
    .dropdown-toggle {
        background: var(--bg-secondary);
        border: 1px solid var(--border-secondary);
    }
    
    .nav-item.dropdown.active .dropdown-toggle,
    .nav-item.dropdown:hover .dropdown-toggle {
        background: var(--primary-light);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }
    
    .dropdown-toggle::after {
        right: 16px;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--primary-color);
        margin: 8px 0 0 12px;
        padding: 8px 0;
        background: var(--bg-secondary);
        border-radius: var(--border-radius-md);
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-item.dropdown.active .dropdown-menu,
    .nav-item.dropdown:hover .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-divider {
        margin: 4px 12px;
    }
    
    .dropdown-item {
        padding: 10px 16px;
        font-size: var(--fs-text-sm);
        margin: 4px 8px;
        border-radius: var(--border-radius-sm);
    }
    
    .dropdown-item::before {
        display: none;
    }
    
    .dropdown-item:hover {
        background: var(--primary-light);
        padding-left: 16px;
    }
}

.h-inherit {
    height: inherit;
}
.w-100 {
    width: 100%;
}
.green-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    margin-right: 8px;
    vertical-align: middle;
}
.accent-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    margin-right: 8px;
    vertical-align: middle;
}
.secondary-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    margin-right: 8px;
    vertical-align: middle;
}

.warning-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--warning-color);
    margin-right: 8px;
    vertical-align: middle;
}
.text-align-center {
    text-align: center;
}
.justify-content {
    justify-content: center;
}
.pt-0 {
    padding-top: 0 !important;
}
.display-flex-column {
    display: flex;
    flex-direction: column;
}
.justify-content-between {
    justify-content: space-between;
}
