/* Hash Generator — tool-specific styles */

.input-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    border-bottom: 1.5px solid var(--border);
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1.5px;
    transition: color var(--transition), border-color var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-panel label { margin-top: 0; }

.input-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.file-drop {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    color: var(--muted);
}
.file-drop:hover, .file-drop.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}
.file-drop svg { margin-bottom: 12px; opacity: 0.5; }
.file-drop p { font-size: 0.92rem; margin-bottom: 4px; }
.file-hint { font-size: 0.8rem; opacity: 0.7; }
.file-label {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.file-info {
    padding: 14px 16px;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 14px;
}
.file-info strong { color: var(--text); display: block; margin-bottom: 4px; }

.results-panel {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 16px;
}

.hash-row {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.hash-row:last-of-type { border-bottom: none; }
.hash-row:hover { background: var(--bg); }

.hash-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
    background: var(--primary-light);
    padding: 3px 8px;
    border-radius: 4px;
    text-align: center;
}

.hash-value {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text);
    word-break: break-all;
    line-height: 1.5;
}
.hash-value.computing { color: var(--muted-light); font-style: italic; }

.copy-hash-btn {
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    flex-shrink: 0;
}
.copy-hash-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.copy-hash-btn.copied { background: #D1FAE5; border-color: var(--success); color: var(--success); }

.hash-options {
    padding: 12px 20px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.hash-options label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 14px;
}
.feature-list li {
    font-size: 0.85rem;
    color: var(--muted);
    padding-left: 18px;
    position: relative;
}
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 5px;
    background-repeat: no-repeat;
    background-position: center;
}

h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .hash-row { grid-template-columns: 70px 1fr; gap: 8px; }
    .copy-hash-btn { grid-column: 2; justify-self: start; }
}
