/* MD4 Hash Tool Styles */
.md4-tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.md4-hero {
    position: relative;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.md4-hero-content {
    position: relative;
    z-index: 2;
}

.md4-main-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.md4-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.md4-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.md4-shape-1, .md4-shape-2, .md4-shape-3 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.md4-shape-1 {
    width: 150px;
    height: 150px;
    top: -50px;
    right: -50px;
}

.md4-shape-2 {
    width: 250px;
    height: 250px;
    bottom: -100px;
    left: -100px;
}

.md4-shape-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 30%;
}

.md4-tool-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.md4-input-container, .md4-output-container {
    margin-bottom: 25px;
}

.md4-input-label, .md4-output-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #444;
    font-size: 1.1rem;
}

.md4-input-field, .md4-output-field {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    resize: vertical;
}

.md4-input-field:focus, .md4-output-field:focus {
    border-color: #6e8efb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.md4-output-field {
    background-color: #f9f9f9;
}

.md4-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.md4-action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.md4-generate-btn {
    background-color: #6e8efb;
    color: white;
    flex: 1;
}

.md4-generate-btn:hover {
    background-color: #5a7df4;
    transform: translateY(-2px);
}

.md4-clear-btn {
    background-color: #f1f1f1;
    color: #555;
}

.md4-clear-btn:hover {
    background-color: #e1e1e1;
}

.md4-output-wrapper {
    position: relative;
}

.md4-copy-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 8px 15px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.md4-copy-btn:hover {
    background-color: #6e8efb;
    color: white;
}

.md4-info-section {
    margin-bottom: 40px;
}

.md4-section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #444;
    position: relative;
    padding-bottom: 10px;
}

.md4-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    border-radius: 3px;
}

.md4-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.md4-info-box {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border-top: 4px solid #6e8efb;
}

.md4-info-box:hover {
    transform: translateY(-5px);
}

.md4-info-icon {
    width: 50px;
    height: 50px;
    background: rgba(110, 142, 251, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.md4-info-icon svg {
    width: 24px;
    height: 24px;
    color: #6e8efb;
}

.md4-info-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #444;
}

.md4-info-text {
    color: #666;
    line-height: 1.6;
}

.md4-details-section {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.md4-details-text {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

.md4-feature-highlight {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.md4-feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(110, 142, 251, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.md4-feature-icon svg {
    width: 24px;
    height: 24px;
    color: #6e8efb;
}

.md4-feature-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #444;
}

.md4-feature-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.md4-feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: #555;
}

.md4-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: #6e8efb;
    border-radius: 50%;
}

.md4-faq-section {
    margin-bottom: 40px;
}

.md4-faq-container {
    border-radius: 12px;
    overflow: hidden;
}

.md4-faq-item {
    border-bottom: 1px solid #eee;
}

.md4-faq-item:last-child {
    border-bottom: none;
}

.md4-faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #444;
    transition: background 0.2s;
}

.md4-faq-question:hover {
    background: #f9f9f9;
}

.md4-faq-icon {
    transition: transform 0.3s;
}

.md4-faq-item.active .md4-faq-icon {
    transform: rotate(180deg);
}

.md4-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: #f9f9f9;
}

.md4-faq-item.active .md4-faq-answer {
    padding: 20px;
    max-height: 500px;
}

.md4-faq-answer p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.md4-related-tools {
    margin-bottom: 40px;
}

.md4-related-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.md4-related-tool {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.md4-related-tool:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    color: #6e8efb;
}

.md4-related-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive styles */
@media (max-width: 768px) {
    .md4-main-title {
        font-size: 2rem;
    }
    
    .md4-subtitle {
        font-size: 1rem;
    }
    
    .md4-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .md4-feature-highlight {
        flex-direction: column;
    }
    
    .md4-actions {
        flex-direction: column;
    }
    
    .md4-action-btn {
        width: 100%;
    }
}