.icp-converter {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
}

.icp-converter h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.icp-converter .icp-description {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 15px;
}

.icp-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    background: #f8fafc;
}

.icp-dropzone:hover,
.icp-dropzone.icp-dragover {
    border-color: #6366f1;
    background: #eef2ff;
}

.icp-dropzone-icon {
    font-size: 48px;
    margin-bottom: 12px;
    color: #94a3b8;
}

.icp-dropzone-text {
    font-size: 16px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 4px;
}

.icp-dropzone-hint {
    font-size: 13px;
    color: #94a3b8;
}

.icp-file-info {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f1f5f9;
    border-radius: 10px;
    margin-top: 16px;
}

.icp-file-info.icp-visible {
    display: flex;
}

.icp-file-icon {
    width: 40px;
    height: 40px;
    background: #e0e7ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.icp-file-details {
    flex: 1;
    min-width: 0;
}

.icp-file-name {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icp-file-size {
    font-size: 12px;
    color: #94a3b8;
}

.icp-file-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 20px;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
}

.icp-file-remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

.icp-merge-options {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.icp-merge-options.icp-visible {
    display: block;
}

.icp-merge-options label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #475569;
}

.icp-merge-options select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    max-width: 240px;
}

.icp-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.icp-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.icp-btn-primary {
    background: #6366f1;
    color: #fff;
}

.icp-btn-primary:hover:not(:disabled) {
    opacity: 0.9;
}

.icp-btn-success {
    background: #22c55e;
    color: #fff;
}

.icp-btn-success:hover {
    opacity: 0.9;
}

.icp-btn-outline {
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.icp-btn-outline:hover {
    background: #f8fafc;
}

.icp-progress {
    display: none;
    margin-top: 20px;
}

.icp-progress.icp-visible {
    display: block;
}

.icp-progress-bar-container {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.icp-progress-bar {
    height: 100%;
    background: #6366f1;
    border-radius: 4px;
    transition: width 0.3s;
    width: 0%;
}

.icp-progress-text {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    text-align: center;
}

.icp-result {
    display: none;
    margin-top: 24px;
    padding: 24px;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
    text-align: center;
}

.icp-result.icp-visible {
    display: block;
}

.icp-result-icon {
    font-size: 48px;
    margin-bottom: 8px;
    color: #22c55e;
}

.icp-result h3 {
    font-size: 20px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 4px;
}

.icp-result p {
    color: #4ade80;
    font-size: 14px;
    margin-bottom: 16px;
}

.icp-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.icp-error-msg {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
}

.icp-error-msg.icp-visible {
    display: block;
}

/* All Tools Grid */
.icp-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.icp-tool-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.15s;
}

.icp-tool-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.icp-tool-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.icp-tool-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.icp-tool-card p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* File list for merge */
.icp-file-list {
    margin-top: 12px;
}

.icp-file-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #475569;
}

.icp-file-list-item .icp-file-remove {
    margin-left: auto;
    font-size: 16px;
}
