/* Hash Generator - tool-specific styles (imports tools-common.css) */

.card-body {
    padding: 25px 30px;
}

.secure-context-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.hash-input-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

#hashInput {
    width: 100%;
    min-height: 140px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    background: var(--light-bg);
    margin-bottom: 20px;
}

#hashInput:focus {
    outline: none;
    border-color: var(--primary-color);
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
}

.file-info {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: #374151;
}

.hash-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hash-row {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    gap: 12px;
    background: var(--code-bg);
    border-radius: 8px;
    padding: 12px 16px;
}

.hash-row-label {
    color: #a7f3d0;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.hash-value {
    display: block;
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    min-height: 1.2em;
}

.copy-hash-btn {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.copy-hash-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 640px) {
    .hash-row {
        grid-template-columns: 1fr;
    }
}
