/* Modern Kategori Dropdown */
.category-dropdown-container {
    position: relative;
    margin-bottom: 25px;
    z-index: 100;
}

.category-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.category-dropdown-trigger:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.category-dropdown-trigger.active {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
    background: linear-gradient(135deg, #f8f9ff 0%, #faf5ff 100%);
}

.trigger-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.trigger-icon {
    width: 24px;
    height: 24px;
    color: #667eea;
    flex-shrink: 0;
}

.trigger-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.trigger-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-badge {
    font-size: 13px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4px 12px;
    border-radius: 20px;
    min-width: 30px;
    text-align: center;
}

.trigger-arrow {
    width: 20px;
    height: 20px;
    color: #6c757d;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.category-dropdown-trigger.active .trigger-arrow {
    transform: rotate(180deg);
    color: #667eea;
}

/* Dropdown Menu */
.category-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.category-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arama Kutusu */
.dropdown-search-box {
    position: relative;
    padding: 16px;
    border-bottom: 2px solid #f0f0f0;
    flex-shrink: 0;
    background: #f8f9fa;
}

.search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #adb5bd;
    pointer-events: none;
}

.dropdown-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.dropdown-search-input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.dropdown-search-input::placeholder {
    color: #adb5bd;
}

/* Kategori Listesi */
.dropdown-category-list {
    overflow-y: auto;
    padding: 8px;
    flex: 1;
}

.dropdown-category-list::-webkit-scrollbar {
    width: 8px;
}

.dropdown-category-list::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}

.dropdown-category-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.dropdown-category-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

/* Kategori Item */
.dropdown-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    position: relative;
}

.dropdown-category-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.dropdown-category-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dropdown-category-item.active:hover {
    transform: translateX(0);
}

.category-item-indent {
    color: #adb5bd;
    font-size: 14px;
    margin-right: -4px;
    flex-shrink: 0;
}

.dropdown-category-item.active .category-item-indent {
    color: rgba(255, 255, 255, 0.7);
}

.category-item-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.dropdown-category-item:hover .category-item-icon {
    transform: scale(1.1);
}

.category-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.category-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-category-item.active .category-item-name {
    color: white;
}

.category-item-count {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
}

.dropdown-category-item.active .category-item-count {
    color: rgba(255, 255, 255, 0.85);
}

.category-check {
    width: 20px;
    height: 20px;
    color: white;
    flex-shrink: 0;
    animation: checkIn 0.3s ease;
}

@keyframes checkIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
    margin: 8px 0;
}

/* Alt Kategoriler için Indent */
.dropdown-category-item.has-children {
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .category-dropdown-trigger {
        padding: 14px 18px;
    }
    
    .trigger-icon {
        width: 22px;
        height: 22px;
    }
    
    .trigger-text {
        font-size: 15px;
    }
    
    .category-badge {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .category-dropdown-menu {
        max-height: 400px;
    }
    
    .dropdown-search-box {
        padding: 12px;
    }
    
    .dropdown-search-input {
        padding: 10px 14px 10px 40px;
        font-size: 13px;
    }
    
    .dropdown-category-item {
        padding: 10px 12px;
    }
    
    .category-item-icon {
        font-size: 22px;
    }
    
    .category-item-name {
        font-size: 13px;
    }
    
    .category-item-count {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .trigger-text {
        font-size: 14px;
    }
    
    .category-badge {
        display: none;
    }
    
    .category-dropdown-menu {
        max-height: 350px;
    }
    
    .dropdown-category-item {
        padding: 9px 10px;
    }
}
