/* --- Wrapper (Matches Stopwatch/Diff Theme) --- */
#hg-wrapper {
    font-family: 'Press Start 2P', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #111827; /* Gray 900 */
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 2px solid #374151; /* Gray 700 */
    color: white;
    gap: 20px;
}

/* --- Input Section --- */
.hg-section {
    width: 100%;
}

.hg-label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    border-bottom: 2px solid #374151;
    padding-bottom: 4px;
}

.hg-textarea {
    width: 100%;
    background-color: #1f2937; /* Gray 800 */
    border: 1px solid #374151;
    color: #d1d5db; /* Gray 300 */
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: 0.9rem;
    padding: 15px;
    border-radius: 6px;
    height: 100px;
    resize: vertical;
    outline: none;
    line-height: 1.4;
    transition: all 0.2s;
}

.hg-textarea:focus {
    border-color: #3b82f6; /* Blue focus */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    color: white;
}

/* --- Hash Cards --- */
.hg-hashes {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hg-card {
    background-color: #000;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 12px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.hg-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.hg-algo-name {
    font-size: 0.8rem;
    color: #fbbf24; /* Amber */
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.3);
}

.hg-algo-tag {
    font-size: 0.6rem;
    color: #6b7280;
    font-family: 'Press Start 2P', monospace, sans-serif;
}

.hg-card-body {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hg-hash-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #10b981; /* Green text */
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: 0.9rem;
    padding: 5px 0;
    outline: none;
    width: 100%;
}

.hg-btn-copy {
    background-color: #374151;
    color: #d1d5db;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.1s;
    min-width: 60px;
}

.hg-btn-copy:hover {
    background-color: #4b5563;
    color: white;
}

.hg-btn-copy.active {
    background-color: #10b981;
    color: #064e3b;
}

/* --- Status Bar --- */
.hg-status {
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #111;
    border: 1px solid #374151;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #6b7280;
    text-transform: uppercase;
}

.hg-status.success {
    color: #10b981;
    border-color: #059669;
}

.hg-status.error {
    color: #ef4444;
    border-color: #b91c1c;
}

/* --- Clear Button --- */
.hg-btn-clear {
    width: 100%;
    background-color: #ef4444;
    color: #7f1d1d;
    border: none;
    border-bottom: 4px solid #b91c1c;
    border-radius: 4px;
    padding: 15px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.1s;
}

.hg-btn-clear:active {
    transform: translateY(4px);
    border-bottom: none;
    margin-bottom: 4px;
}