/* ============================================================
   Sprawdzanie chipów — styl specyficzny
   ============================================================ */

.chip-container {
    max-width: 700px;
    margin: 0 auto;
}

.chip-input {
    font-size: 1.2rem;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.15em;
    text-align: center;
    padding: 0.75rem 1rem;
}

.chip-error {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

/* Chip info */
.chip-info {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}

.chip-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.chip-info-table td:first-child {
    font-weight: 500;
    color: var(--color-text-secondary);
    width: 45%;
}

/* Results */
.chip-results {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-border);
}

.chip-results h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* Database cards */
.db-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.db-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    transition: border-color 0.15s, background 0.15s;
}

/* Card row layout */
.db-card-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.db-status-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1;
    width: 1.5rem;
    text-align: center;
}

.db-card-info {
    flex: 1;
    min-width: 0;
}

.db-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.db-message {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 0.15rem;
    line-height: 1.4;
}

.db-status-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* Status colors */
.db-card.status-found {
    border-color: #4caf50;
    background: #e8f5e9;
}

.db-card.status-found .db-message {
    color: #2e7d32;
    font-weight: 500;
}

.db-card.status-not-found {
    border-color: #e0e0e0;
    background: #fafafa;
}

.db-card.status-not-found .db-name {
    color: #999;
}

.db-card.status-manual {
    border-color: var(--color-border);
}

.db-card.status-redirect {
    border-color: #e0e0e0;
    background: #fafafa;
}

.db-card.status-redirect .db-name {
    color: #999;
}

.db-card.status-redirect .db-message {
    font-style: italic;
}

.db-card.status-checking {
    opacity: 0.7;
}

.db-card.status-error {
    border-color: #ffcdd2;
    background: #fff3f3;
}

/* Buttons */
.btn-sm {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-found {
    background: #4caf50;
    border-color: #4caf50;
    color: #fff;
}

.btn-found:hover {
    background: #43a047;
}

/* Summary banner */
.chip-summary {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.chip-summary-found {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.chip-summary-manual {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #f57f17;
}

.chip-summary-none {
    background: #fce4ec;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

/* Chip help */
.chip-help {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.chip-help p {
    margin: 0.5rem 0;
}
