.redirect-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.redirect-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.redirect-type-card {
    border-top: 4px solid;
    height: 100%;
}

.stdin-card { border-top-color: #0d6efd; }
.stdout-card { border-top-color: #198754; }
.stderr-card { border-top-color: #ffc107; }
.pipe-card { border-top-color: #dc3545; }
.here-doc-card { border-top-color: #6f42c1; }

.redirect-table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.redirect-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem;
    text-align: left;
}

.redirect-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.redirect-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.redirect-badge {
    font-family: 'Courier New', monospace;
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
}

.redirect-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.flow-diagram {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.flow-step {
    display: inline-block;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0.5rem;
    min-width: 120px;
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 0.5rem;
}

.io-symbol {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin: 0 0.5rem;
}

.redirect-demo {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid var(--info-color);
}

.command-line {
    font-family: 'Courier New', monospace;
    background-color: #1e1e1e;
    color: #00ff00;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    margin: 0.5rem 0;
}

.io-visualization {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem;
    background-color: #e7f3ff;
    border-radius: 0.5rem;
}

.io-box {
    text-align: center;
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 120px;
}

.arrow-container {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .flow-step {
        min-width: 100px;
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .io-visualization {
        flex-direction: column;
    }

    .arrow-container {
        margin: 1rem 0;
        transform: rotate(90deg);
    }
}

.example-comparison {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.example-before, .example-after {
    padding: 1rem;
    margin: 0.5rem 0;
}

.example-before {
    background-color: #ffeaea;
    border-left: 4px solid var(--danger-color);
}

.example-after {
    background-color: #d1edff;
    border-left: 4px solid var(--success-color);
}
