/* Multi-Select Toolbar */
.multi-select-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FFB6D9 0%, #FF8DC7 100%);
    padding: 15px 20px;
    padding-bottom: calc(15px + var(--safe-area-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.multi-select-toolbar:not(.hidden) {
    transform: translateY(0);
}

.toolbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.toolbar-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.toolbar-btn.primary {
    background: white;
    color: #FF8DC7;
}

.toolbar-btn.primary:hover {
    background: #f0f0f0;
}

.toolbar-btn svg {
    width: 18px;
    height: 18px;
}

.selected-count {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.selected-count strong {
    font-size: 20px;
    font-weight: 700;
}

/* Multi-Select Mode Styles */
.multi-select-active .font-card.selectable {
    cursor: pointer;
    position: relative;
}

.multi-select-active .font-card.selectable::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: 2px solid #FFB6D9;
    border-radius: 50%;
    background: white;
    z-index: 10;
}

.multi-select-active .font-card.selected {
    border-color: #FFB6D9;
    box-shadow: 0 0 0 3px rgba(255, 182, 217, 0.3);
}

.multi-select-active .font-card.selected::before {
    background: #FFB6D9;
    border-color: #FFB6D9;
}

.multi-select-active .font-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    z-index: 11;
}

/* Folder Selection Modal */
.folder-selection-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.folder-selection-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.folder-selection-item:hover {
    background: #FFE8F0;
    transform: translateX(5px);
}

.folder-selection-item svg {
    width: 24px;
    height: 24px;
    stroke: #FFB6D9;
}

.folder-selection-item span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Folder List View */
.folder-list-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.folder-item-view {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.folder-item-view:hover {
    background: #FFE8F0;
    transform: translateX(5px);
}

.folder-item-view.active {
    background: linear-gradient(135deg, #FFB6D9 0%, #FF8DC7 100%);
    color: white;
}

.folder-item-view svg {
    width: 24px;
    height: 24px;
    stroke: #FFB6D9;
}

.folder-item-view.active svg {
    stroke: white;
}

.folder-item-view span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.folder-item-view.active span {
    color: white;
}

.folder-count {
    margin-left: auto;
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .toolbar-content {
        flex-wrap: wrap;
    }
    
    .selected-count {
        font-size: 14px;
    }
    
    .toolbar-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
