/* MD2 Hash Calculator Styles */
.md2-hash-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #333;
}

.md2-hash-hero {
    background: linear-gradient(135deg, #4a6cf7 0%, #2541b2 100%);
    color: white;
    padding: 60px 0 100px;
    text-align: center;
    position: relative;
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.2);
}

.md2-hash-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.md2-hash-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.md2-hash-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
}

.md2-hash-tool-section {
    margin-bottom: 60px;
}

.md2-hash-input-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.md2-hash-input-box, .md2-hash-output-box {
    padding: 30px;
}

.md2-hash-input-box {
    border-bottom: 1px solid #eee;
}

.md2-hash-input-label, .md2-hash-output-label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #444;
}

.md2-hash-input-textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.md2-hash-input-textarea:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
}

.md2-hash-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 15px;
}

.md2-hash-action-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.md2-hash-generate-btn {
    background-color: #4a6cf7;
    color: white;
}

.md2-hash-generate-btn:hover {
    background-color: #3a5bd9;
    transform: translateY(-2px);
}

.md2-hash-clear-btn {
    background-color: #f5f5f5;
    color: #666;
}

.md2-hash-clear-btn:hover {
    background-color: #e0e0e0;
}

.md2-hash-output-container {
    display: flex;
    gap: 10px;
}

.md2-hash-output-field {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f9f9f9;
    font-family: monospace;
    color: #333;
}

.md2-hash-copy-btn {
    padding: 0 20px;
    background-color: #4a6cf7;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.md2-hash-copy-btn:hover {
    background-color: #3a5bd9;
}

.md2-hash-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.md2-hash-stat {
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    gap: 8px;
}

.md2-hash-stat-label {
    font-weight: 600;
    color: #666;
}

.md2-hash-stat-value {
    font-weight: 700;
    color: #4a6cf7;
}

.md2-hash-info-section {
    margin-bottom: 60px;
}

.md2-hash-section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.md2-hash-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #4a6cf7, #2541b2);
    margin: 15px auto 0;
    border-radius: 2px;
}

.md2-hash-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.md2-hash-info-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border-top: 4px solid #4a6cf7;
}

.md2-hash-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.md2-hash-info-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #4a6cf7;
}

.md2-hash-info-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.md2-hash-info-text {
    color: #666;
    line-height: 1.6;
}

.md2-hash-content-section {
    position: relative;
    margin-bottom: 60px;
}

.md2-hash-content-decorative {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.1) 0%, rgba(37, 65, 178, 0.1) 100%);
    z-index: -1;
}

.md2-hash-content-decorative-left {
    top: -50px;
    left: -50px;
}

.md2-hash-content-decorative-right {
    bottom: -50px;
    right: -50px;
}

.md2-hash-content-main {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.md2-hash-content-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.md2-hash-content-text {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.md2-hash-example {
    background-color: #f9f9f9;
    border-left: 4px solid #4a6cf7;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.md2-hash-example-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.md2-hash-example-list {
    list-style-type: none;
    padding-left: 0;
}

.md2-hash-example-list li {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

.md2-hash-example-list li:last-child {
    border-bottom: none;
}

.md2-hash-example-list code {
    background-color: #eef2ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #4a6cf7;
}

.md2-hash-faq-section {
    margin-bottom: 60px;
}

.md2-hash-faq-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.md2-hash-faq-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #4a6cf7, #2541b2);
    margin: 15px auto 0;
    border-radius: 2px;
}

.md2-hash-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.md2-hash-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.md2-hash-faq-question {
    width: 100%;
    padding: 20px;
    background: white;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.md2-hash-faq-question:hover {
    background-color: #f9f9f9;
}

.md2-hash-faq-icon {
    font-size: 1.2rem;
}

.md2-hash-faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.md2-hash-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: white;
}

.md2-hash-faq-item.active .md2-hash-faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.md2-hash-faq-item.active .md2-hash-faq-toggle {
    transform: rotate(45deg);
}

.md2-hash-related-tool {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.1) 0%, rgba(37, 65, 178, 0.1) 100%);
    border-radius: 12px;
}

.md2-hash-related-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.md2-hash-related-text {
    color: #666;
    font-size: 1.1rem;
}

.md2-hash-related-link {
    color: #4a6cf7;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.md2-hash-related-link:hover {
    color: #2541b2;
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
    .md2-hash-title {
        font-size: 2.2rem;
    }
    
    .md2-hash-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .md2-hash-actions {
        flex-direction: column;
    }
    
    .md2-hash-content-main {
        padding: 30px 20px;
    }
    
    .md2-hash-content-decorative {
        display: none;
    }
}

@media (max-width: 480px) {
    .md2-hash-title {
        font-size: 1.8rem;
    }
    
    .md2-hash-subtitle {
        font-size: 1rem;
    }
    
    .md2-hash-input-box, .md2-hash-output-box {
        padding: 20px 15px;
    }
    
    .md2-hash-stats {
        flex-direction: column;
        gap: 10px;
    }
}