.file-hash-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.file-hash-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.header-content {
    color: #fff;
}

.calculator-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.calculator-title i {
    font-size: 2.8rem;
}

.calculator-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.calculator-badge {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.hash-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.input-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.upload-area {
    border: 2px dashed #e8e8e8;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #f5576c;
    background: #fff5f6;
}

.upload-area.processing {
    pointer-events: none;
    opacity: 0.7;
}

.upload-content i {
    font-size: 3rem;
    color: #f5576c;
    margin-bottom: 15px;
}

.upload-content p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 0.85rem !important;
    color: #999 !important;
}

.file-input {
    display: none;
}

.algorithms-section {
    margin-bottom: 25px;
}

.algorithms-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.algorithms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.algorithm-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.algorithm-item:hover {
    background: #fff0f1;
}

.algorithm-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f5576c;
}

.algorithm-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.compare-section {
    margin-top: 25px;
}

.compare-input-wrapper {
    display: flex;
    gap: 10px;
}

.compare-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.95rem;
}

.compare-input:focus {
    outline: none;
    border-color: #f5576c;
}

.compare-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.compare-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.result-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-title i {
    color: #f5576c;
}

.result-content {
    min-height: 150px;
    margin-bottom: 25px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    font-size: 0.95rem;
}

.result-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.file-info i {
    font-size: 1.5rem;
    color: #f5576c;
}

.file-details p {
    margin: 0;
}

.file-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.file-size {
    font-size: 0.85rem;
    color: #666;
}

.hash-item {
    margin-bottom: 15px;
}

.hash-item:last-child {
    margin-bottom: 0;
}

.hash-algorithm {
    display: inline-block;
    background: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f5576c;
    margin-bottom: 8px;
    border: 1px solid #f093fb;
}

.hash-value-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hash-value {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #333;
    word-break: break-all;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
}

.hash-copy {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hash-copy:hover {
    background: #f5576c;
    color: #fff;
    border-color: transparent;
}

.history-section {
    margin-top: 25px;
}

.history-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
}

.empty-history {
    color: #999;
    text-align: center;
    padding: 20px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-file {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #333;
    overflow: hidden;
}

.history-file i {
    color: #f5576c;
}

.history-file span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-hash {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #666;
}

.history-time {
    font-size: 0.75rem;
    color: #999;
}

.quick-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.quick-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

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

.text-hash-container textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.95rem;
    resize: vertical;
}

.text-hash-container textarea:focus {
    outline: none;
    border-color: #f5576c;
}

.text-hash-btn {
    align-self: flex-start;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-hash-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.text-result {
    margin-top: 15px;
}

.text-hash-result {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.text-hash-result .hash-item {
    margin-bottom: 12px;
}

.calculator-guide {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.guide-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.guide-item {
    text-align: center;
}

.guide-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
    color: #fff;
}

.guide-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.guide-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .calculator-title {
        font-size: 1.8rem;
    }

    .hash-main {
        grid-template-columns: 1fr;
    }

    .algorithms-grid {
        grid-template-columns: 1fr;
    }

    .compare-input-wrapper {
        flex-direction: column;
    }

    .compare-btn {
        align-self: stretch;
        justify-content: center;
    }

    .text-hash-btn {
        align-self: stretch;
        justify-content: center;
    }
}