/* File Extractor Tool Specific Styles */

/* File Info */
.file-info {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-input);
    border-radius: var(--border-radius-xs);
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    min-width: 80px;
}

.info-value {
    color: #38ef7d;
    font-weight: 500;
    word-break: break-all;
}

/* Filter Section */
.filter-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Extension Groups */
.extension-group {
    margin-bottom: 5px;
}

.group-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.extension-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Extension Tag Button */
.ext-tag {
    padding: 8px 16px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Monaco', 'Consolas', monospace;
}

.ext-tag:hover {
    border-color: rgba(56, 239, 125, 0.5);
    color: var(--text-primary);
}

.ext-tag.selected {
    background: var(--tools-gradient);
    border-color: transparent;
    color: white;
    font-weight: 500;
}

/* Custom Extension Input */
.custom-ext-section {
    padding-top: 10px;
    border-top: 1px solid var(--glass-border);
}

.custom-ext-input {
    display: flex;
    gap: 10px;
}

.custom-ext-input .text-input {
    flex: 1;
    max-width: 200px;
}

/* Selected Extensions */
.selected-section {
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 36px;
    align-items: center;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.3), rgba(56, 239, 125, 0.3));
    border: 1px solid rgba(56, 239, 125, 0.5);
    border-radius: 15px;
    color: #38ef7d;
    font-size: 0.85rem;
    font-family: 'Monaco', 'Consolas', monospace;
}

.selected-tag .remove-tag {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.selected-tag .remove-tag:hover {
    opacity: 1;
}

.no-selection {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* Action Buttons */
.action-btns {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

/* File Count Badge */
.file-count-badge {
    margin-left: auto;
    padding: 4px 12px;
    background: var(--tools-gradient);
    border-radius: 12px;
    font-size: 0.8rem;
    color: white;
    font-weight: 500;
}

/* File List */
.file-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.file-list::-webkit-scrollbar {
    width: 6px;
}

.file-list::-webkit-scrollbar-track {
    background: var(--bg-input);
    border-radius: 3px;
}

.file-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.file-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* File Item */
.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: var(--border-radius-xs);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: var(--bg-card-hover);
}

.file-item.matched {
    border-left: 3px solid #38ef7d;
}

.file-item-icon {
    font-size: 1.5rem;
    min-width: 36px;
    text-align: center;
}

.file-item-info {
    flex: 1;
    min-width: 0;
}

.file-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
}

.file-item-path {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    word-break: break-all;
}

.file-item-size {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.file-item-ext {
    padding: 3px 8px;
    background: rgba(56, 239, 125, 0.15);
    border-radius: 10px;
    font-size: 0.75rem;
    color: #38ef7d;
    font-family: 'Monaco', 'Consolas', monospace;
}

/* Progress */
.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--tools-gradient);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #38ef7d;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-ext-input {
        flex-direction: column;
    }

    .custom-ext-input .text-input {
        max-width: none;
    }

    .file-item {
        flex-wrap: wrap;
    }

    .file-item-size {
        width: 100%;
        margin-top: 8px;
        padding-left: 48px;
    }

    .action-btns {
        flex-direction: column;
    }

    .action-btns .btn {
        width: 100%;
    }

    .file-list {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .extension-tags {
        gap: 6px;
    }

    .ext-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}