/* Morse Code Tool Styles */
.morse-code-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.morse-code-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.morse-code-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.morse-code-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.converter-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e1e1e1;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #6e8efb;
    font-weight: bold;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #6e8efb;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.input-group, .output-group {
    margin-bottom: 1.5rem;
}

.input-group label, .output-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    transition: border 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #6e8efb;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.output-group textarea {
    background-color: #f9f9f9;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.copy-btn, .play-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.copy-btn {
    background-color: #6e8efb;
    color: white;
}

.copy-btn:hover {
    background-color: #5a7df4;
    transform: translateY(-2px);
}

.play-btn {
    background-color: #4CAF50;
    color: white;
}

.play-btn:hover {
    background-color: #3e8e41;
    transform: translateY(-2px);
}

.morse-code-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.info-box {
    padding: 1.5rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-box h3 {
    color: #6e8efb;
    margin-bottom: 1rem;
}

.styled-heading {
    text-align: center;
    position: relative;
    margin: 3rem 0 2rem;
    padding-bottom: 1rem;
    color: #444;
}

.styled-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    border-radius: 2px;
}

.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.guide-chart {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.guide-chart h3 {
    color: #6e8efb;
    margin-bottom: 1rem;
}

.guide-chart ul {
    list-style: none;
    padding: 0;
}

.guide-chart li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.2rem;
    text-align: left;
    background: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8f9fa;
}

.faq-answer p {
    padding: 1.2rem 0;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.2rem;
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.related-tool {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.related-tool-link {
    display: inline-block;
    margin: 1rem 0;
    font-size: 1.2rem;
    color: #6e8efb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.related-tool-link:hover {
    color: #5a7df4;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guide-content {
        grid-template-columns: 1fr;
    }
    
    .morse-code-info {
        grid-template-columns: 1fr;
    }
    
    .morse-code-hero h1 {
        font-size: 2rem;
    }
    
    .converter-tabs {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .morse-code-container {
        padding: 1rem;
    }
    
    .copy-btn, .play-btn {
        width: 100%;
    }
}