/* Item Deduplicator Styles */

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li + li::before {
    display: inline-block;
    padding: 0 0.5rem;
    color: #6c757d;
    content: "/";
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: #6c757d;
}

.tool-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Layout */
.dedup-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .dedup-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .options-section {
        grid-column: 1 / -1;
    }
}

/* Input and Results Sections */
.input-section,
.results-section {
    display: flex;
    flex-direction: column;
}

.input-section h3,
.options-section h3,
.results-section h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #343541;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

textarea {
    width: 100%;
    min-height: 250px;
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    resize: vertical;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) inset;
    line-height: 1.5;
}

#output-list {
    background-color: #f8f9fa;
    font-size: 1.05rem;
    color: #000000;
    font-weight: 500;
    padding: 1rem;
    border: 1px solid #bfdbfe;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) inset;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #343541;
    font-size: 1.1rem;
}

.input-controls,
.output-controls {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

/* Options Section */
.options-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.option-group {
    display: flex;
    flex-direction: column;
}

.checkbox-wrapper {
    background-color: white;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.checkbox-wrapper label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: 600;
    color: #343541;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.option-description {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-left: 32px;
}

.action-button {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Results Section */
.results-panel {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.results-output label {
    color: #1a56db;
    position: relative;
    padding-left: 1rem;
}

.results-output label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #1a56db;
    border-radius: 2px;
}

.results-stats {
    background-color: #f0f9ff;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-weight: 500;
    display: none;
}

.results-stats.has-results {
    display: block;
}

/* Info Panel */
.info-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-item h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1.05rem;
    font-weight: 600;
}

.info-item p, .info-item ul {
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

.info-item ul {
    padding-left: 1.5rem;
}

.info-item li {
    margin-bottom: 0.35rem;
}

/* Related Tools Section */
.related-tools {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.related-tools h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #343541;
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.related-tools h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-tool-card {
    padding: 1.25rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.related-tool-card h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.related-tool-card p {
    flex-grow: 1;
    margin-bottom: 1.25rem;
    color: #4b5563;
    line-height: 1.5;
}

.btn-related {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
}

.btn-related:hover {
    background-color: var(--secondary-color);
}

/* Button Styles */
.btn-small {
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(16, 163, 127, 0.1);
}

/* Placeholders */
.placeholder {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    margin-top: 2rem;
    font-size: 1rem;
}