/* ── Hash Generator Styles ── */
.hash-input-wrap { position:relative; }
.hash-input-wrap textarea {
    display:block; width:100%; padding:14px 16px;
    border:2px solid var(--border);
    border-radius:var(--radius-sm);
    background:var(--bg-glass);
    color:var(--text); font-family:'SF Mono','Fira Code','Consolas',monospace; font-size:0.95rem;
    transition:border-color 0.15s,box-shadow 0.15s;
    resize:vertical; line-height:1.6; box-sizing:border-box;
    min-height:120px; outline:none;
}
.hash-input-wrap textarea:focus {
    border-color:var(--accent);
    box-shadow:0 0 0 3px var(--accent-light);
}
.hash-input-footer { display:flex; align-items:center; justify-content:space-between; padding:0.6rem 0.25rem 0; flex-wrap:wrap; gap:0.4rem; }
.hash-char-count { font-size:0.72rem; color:var(--text-tertiary); }
.hash-file-upload { position:relative; display:inline-block; }
.hash-file-upload input[type="file"] { position:absolute; opacity:0; width:0; height:0; }
.hash-file-btn { display:inline-flex; align-items:center; gap:0.35rem; padding:0.45rem 0.85rem; border:1.5px solid var(--border); border-radius:50px; background:var(--bg-glass); color:var(--text-secondary); font-size:0.75rem; font-weight:600; cursor:pointer; transition:all 0.15s; font-family:var(--font); }
.hash-file-btn:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-light); }
.hash-file-btn.active { border-color:var(--accent); background:var(--accent-light); color:var(--accent); }
.hash-file-name { font-size:0.7rem; color:var(--accent); max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:inline-block; }

.hash-options-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:0.75rem; margin-top:1rem; }
@media (max-width:480px) { .hash-options-grid { grid-template-columns:1fr; } }
.hash-option-group { display:flex; flex-direction:column; gap:0.3rem; }
.hash-option-group label { font-size:0.72rem; font-weight:700; color:var(--text-tertiary); text-transform:uppercase; letter-spacing:0.05em; }
.hash-option-group select,
.hash-option-group input[type="text"] {
    padding:0.55rem 0.75rem; border:1.5px solid var(--border); border-radius:var(--radius-sm);
    background:var(--bg-glass); color:var(--text); font-family:var(--font); font-size:0.85rem;
    transition:border-color 0.15s; outline:none; width:100%; box-sizing:border-box;
}
.hash-option-group select:focus,
.hash-option-group input[type="text"]:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-light); }
.hash-hmac-wrap { display:none; margin-top:0.5rem; }
.hash-hmac-wrap.show { display:flex; flex-direction:column; gap:0.3rem; }
.hash-check-row { display:flex; align-items:center; gap:0.5rem; margin-top:0.5rem; }
.hash-check-row input[type="checkbox"] { width:18px; height:18px; accent-color:var(--accent); cursor:pointer; }
.hash-check-row label { font-size:0.82rem; color:var(--text); cursor:pointer; font-weight:500; }

.hash-output-box { padding:1.25rem; display:flex; flex-direction:column; gap:1rem; }
.hash-output-label { font-size:0.72rem; font-weight:700; color:var(--text-tertiary); text-transform:uppercase; letter-spacing:0.05em; display:flex; align-items:center; gap:0.5rem; }
.hash-output-label .hash-algo-badge { padding:0.2rem 0.55rem; background:var(--accent); color:#fff; border-radius:50px; font-size:0.62rem; font-weight:700; }
.hash-result { word-break:break-all; font-family:'SF Mono','Fira Code','Consolas',monospace; font-size:0.82rem; line-height:1.7; color:var(--text); background:var(--bg-glass); padding:1rem 1.15rem; border-radius:var(--radius-sm); border:1.5px solid var(--border); min-height:6rem; display:flex; align-items:flex-start; transition:all 0.2s; overflow-y:auto; max-height:16rem; }
.hash-result.has-value { border-color:var(--accent); background:var(--accent-light); }
.hash-result-placeholder { color:var(--text-tertiary); font-style:italic; font-family:var(--font); }
.hash-output-actions { display:flex; gap:0.5rem; flex-wrap:wrap; }
.hash-action-btn { padding:0.55rem 1rem; border:1.5px solid var(--border); border-radius:50px; background:var(--bg-glass); color:var(--text-secondary); font-family:var(--font); font-size:0.78rem; font-weight:600; cursor:pointer; transition:all 0.15s; display:inline-flex; align-items:center; gap:0.35rem; }
.hash-action-btn:hover:not(:disabled) { border-color:var(--accent); color:var(--accent); background:var(--accent-light); transform:translateY(-1px); }
.hash-action-btn:disabled { opacity:0.45; cursor:not-allowed; }
.hash-action-btn.primary { background:var(--accent); color:#fff; border-color:var(--accent); }
.hash-action-btn.primary:hover:not(:disabled) { filter:brightness(1.1); }
.hash-processing { display:none; align-items:center; gap:0.5rem; font-size:0.78rem; color:var(--accent); padding:0.3rem 0; }
.hash-processing.show { display:flex; }
.hash-spinner { width:16px; height:16px; border:2px solid var(--border); border-top-color:var(--accent); border-radius:50%; animation:hash-spin 0.6s linear infinite; }
@keyframes hash-spin { to { transform:rotate(360deg); } }

.hash-history-header { display:flex; align-items:center; justify-content:space-between; margin-top:1.25rem; margin-bottom:0.5rem; }
.hash-history-header h4 { font-size:0.85rem; font-weight:700; color:var(--text-tertiary); text-transform:uppercase; letter-spacing:0.06em; margin:0; }
.hash-clear-history { font-size:0.65rem; color:var(--text-tertiary); cursor:pointer; padding:0.2rem 0.5rem; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg); transition:all 0.15s; font-family:var(--font); }
.hash-clear-history:hover { color:var(--accent); border-color:var(--accent); background:var(--accent-light); }
.hash-history-item { display:flex; align-items:center; gap:0.5rem; padding:0.4rem 0.6rem; background:var(--bg-card); border:1px solid var(--border-glass); border-radius:var(--radius-sm); margin-bottom:0.3rem; cursor:pointer; transition:all 0.15s; }
.hash-history-item:hover { border-color:var(--accent); background:var(--accent-light); }
.hash-history-icon { font-size:1.1rem; flex-shrink:0; }
.hash-history-info { flex:1; min-width:0; }
.hash-history-hash { font-family:'SF Mono','Consolas',monospace; font-size:0.64rem; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hash-history-meta { font-size:0.6rem; color:var(--text-tertiary); display:flex; gap:0.5rem; }
.hash-no-history { font-size:0.82rem; color:var(--text-tertiary); text-align:center; padding:0.5rem; }

/* Drag & drop overlay */
.hash-drop-overlay { display:none; position:absolute; inset:0; background:rgba(var(--accent-rgb,123,104,238),0.08); border:2px dashed var(--accent); border-radius:var(--radius-sm); align-items:center; justify-content:center; z-index:5; pointer-events:none; }
.hash-drop-overlay.show { display:flex; }
.hash-drop-text { font-size:1rem; font-weight:700; color:var(--accent); background:var(--bg); padding:0.6rem 1.2rem; border-radius:50px; }