

.hash-generator {
    /* max-width: 800px; */
    margin: 0 auto;
}

.input-section {
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.file-upload {
    margin-top: 15px;
}

.file-label {
    display: block;
    padding: 12px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    border-color: #6366f1;
    background: #f1f5f9;
}

.file-label input[type="file"] {
    display: none;
}

.algorithm-section {
    margin-bottom: 30px;
}

.algorithm-section h3 {
    margin-bottom: 15px;
    color: #1e293b;
}

.algorithm-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.algorithm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
}

.algorithm-btn:hover {
    background: #e2e8f0;
}

.algorithm-btn.active {
    background: #6366f1;
    color: white;
}

.results-section {
    margin-bottom: 30px;
}

.results-section h3 {
    margin-bottom: 15px;
    color: #1e293b;
}

.result-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.algorithm-label {
    min-width: 80px;
    color: #64748b;
}

.hash-result {
    flex: 1;
    display: flex;
    gap: 10px;
}

.hash-result input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
}

.copy-btn {
    padding: 8px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #f1f5f9;
    border-color: #6366f1;
}

.copy-btn .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: #1e293b;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.copy-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.history-section {
    border-top: 2px solid #e2e8f0;
    padding-top: 30px;
}

.history-section h3 {
    margin-bottom: 15px;
    color: #1e293b;
}

.history-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.9rem;
}

.history-item .text {
    color: #64748b;
}

.history-item .hash {
    font-family: monospace;
    color: #1e293b;
}

@media (max-width: 640px) {
    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .algorithm-label {
        margin-bottom: 5px;
    }

    .hash-result {
        width: 100%;
    }
}