:root {
            --primary-color: #2c7da0;
            --secondary-color: #a9d6e5;
            --accent-color: #01497c;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --morse-color: #6f42c1;
            --audio-color: #e83e8c;
        }
        .page-header {
            background: linear-gradient(135deg, rgba(169, 214, 229, 0.4) 0%, rgba(44, 125, 160, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(44, 125, 160, 0.2);
            position: relative;
            overflow: hidden;   color: var(--text-color);
        }
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        .breadcrumb-item a {
            color: var(--text-muted);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: var(--text-color);
        }
        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.15);
        }
        .morse-display {
            font-family: 'Courier New', monospace;
            font-size: 1.3rem;
            letter-spacing: 0.2em;
            padding: 1.5rem;
            background-color: rgba(111, 66, 193, 0.05);
            border: 1px solid rgba(111, 66, 193, 0.2);
            border-radius: 6px;
            margin: 1rem 0;
            min-height: 80px;
            word-break: break-word;
        }
        .morse-char {
            margin-right: 1.5em;
            position: relative;
            display: inline-block;
        }
        .morse-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            background-color: var(--morse-color);
            border-radius: 50%;
            margin: 0 2px;
        }
        .morse-dash {
            display: inline-block;
            width: 20px;
            height: 8px;
            background-color: var(--morse-color);
            border-radius: 4px;
            margin: 0 2px;
        }
        .morse-space {
            display: inline-block;
            width: 30px;
            margin: 0 5px;
        }
        .morse-letter {
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.8rem;
            color: var(--text-muted);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
        }
        .audio-controls {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin: 1rem 0;
            padding: 1rem;
            background-color: var(--light-gray);
            border-radius: 6px;
        }
        .audio-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            background-color: white;
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: all 0.3s;
        }
        .audio-btn:hover {
            background-color: rgba(232, 62, 140, 0.1);
            border-color: var(--audio-color);
        }
        .audio-btn.active {
            background-color: rgba(232, 62, 140, 0.2);
            border-color: var(--audio-color);
            color: var(--audio-color);
        }
        .morse-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        .morse-table th, .morse-table td {
            padding: 0.75rem;
            text-align: center;
            border: 1px solid var(--border-color);
        }
        .morse-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        .morse-table tr:nth-child(even) {
            background-color: rgba(44, 125, 160, 0.05);
        }
        .morse-example {
            font-family: 'Courier New', monospace;
            font-weight: bold;
            color: var(--morse-color);
        }
        .practice-area {
            background-color: rgba(169, 214, 229, 0.1);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
        }
        .practice-question {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }
        .practice-options {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        .practice-option {
            padding: 0.75rem 1.5rem;
            border: 2px solid var(--border-color);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
        }
        .practice-option:hover {
            border-color: var(--primary-color);
        }
        .practice-option.correct {
            border-color: var(--success-color);
            background-color: rgba(40, 167, 69, 0.1);
        }
        .practice-option.incorrect {
            border-color: #dc3545;
            background-color: rgba(220, 53, 69, 0.1);
        }
        @media (max-width: 768px) {
            .morse-char {
                margin-right: 1em;
            }
        }
        .morse-box {
            background-color: rgba(111, 66, 193, 0.05);
            border-left: 3px solid var(--morse-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        .timeline {
            position: relative;
            padding-left: 30px;
            margin: 1.5rem 0;
        }
        .timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 2px;
            background-color: var(--primary-color);
        }
        .timeline-item {
            position: relative;
            margin-bottom: 1.5rem;
        }
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -33px;
            top: 5px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: var(--primary-color);
        }
        .copy-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 10;
        }
        .export-buttons {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        .export-btn {
            padding: 0.5rem 1rem;
            border-radius: 4px;
            background-color: white;
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.9rem;
        }
        .export-btn:hover {
            background-color: var(--light-gray);
            border-color: var(--primary-color);
        }
        .compatibility-warning {
            display: none;
            padding: 0.75rem;
            background-color: #fff3cd;
            border: 1px solid #ffecb5;
            border-radius: 4px;
            margin-bottom: 1rem;
            color: #856404;
        }
        .compatibility-warning.show {
            display: block;
        }
        .progress-container {
            margin: 1rem 0;
        }
        .progress-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.25rem;
        }
        .progress-bar {
            height: 8px;
            background-color: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
        }
        .progress-fill {
            height: 100%;
            background-color: var(--primary-color);
            width: 0%;
            transition: width 0.3s ease;
        }
.function-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.5rem;
    border-radius: 6px;
    background-color: rgba(44, 125, 160, 0.03);
    border: 1px solid rgba(44, 125, 160, 0.1);
}

.example-btn {
    background-color: rgba(44, 125, 160, 0.1);
    border: 1px solid rgba(44, 125, 160, 0.2);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.example-btn:hover {
    background-color: rgba(44, 125, 160, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(44, 125, 160, 0.2);
}

.example-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(44, 125, 160, 0.2);
}

.example-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.2s;
}

.example-btn:hover::after {
    opacity: 1;
}
 
.example-btn[data-example="SOS"] {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.example-btn[data-example="SOS"]:hover {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}

.example-btn[data-example="Emergency SOS"] {
    background-color: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
    font-weight: 600;
}

.example-btn[data-example="Emergency SOS"]:hover {
    background-color: rgba(220, 53, 69, 0.25);
    border-color: #dc3545;
}
 
.example-btn[data-morse] {
    background-color: rgba(111, 66, 193, 0.1);
    border-color: rgba(111, 66, 193, 0.2);
    color: var(--morse-color);
}

.example-btn[data-morse]:hover {
    background-color: rgba(111, 66, 193, 0.2);
    border-color: var(--morse-color);
}
 
@media (max-width: 768px) {
    .function-examples {
        gap: 0.4rem;
        padding: 0.4rem;
    }
    
    .example-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        flex: 1 0 calc(50% - 0.4rem);
        min-width: 0;
        white-space: normal;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .function-examples {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .example-btn {
        flex: 1 0 auto;
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }
}
 
@keyframes examplePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(44, 125, 160, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(44, 125, 160, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(44, 125, 160, 0);
    }
}

.example-btn.recently-used {
    animation: examplePulse 1.5s ease-out;
}
 
.example-btn[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-color);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 0.5rem;
}

.example-btn[title]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-color) transparent transparent transparent;
    margin-bottom: 0;
}
 
.example-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.example-btn:disabled:hover {
    background-color: rgba(44, 125, 160, 0.1);
    border-color: rgba(44, 125, 160, 0.2);
}
 
.examples-category {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.examples-category:first-child {
    margin-top: 0;
}
 
.examples-group {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(44, 125, 160, 0.1);
}

.examples-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
 
.examples-filter {
    margin-bottom: 1rem;
}

.examples-filter input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}
 
.examples-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}
 
.example-btn .example-icon {
    margin-right: 0.4rem;
    font-size: 0.9em;
}

.example-btn .example-icon.fa-heart {
    color: #e83e8c;
}

.example-btn .example-icon.fa-exclamation-triangle {
    color: #ffc107;
}

.example-btn .example-icon.fa-code {
    color: var(--morse-color);
}
 
.example-tag {
    display: inline-block;
    background-color: rgba(44, 125, 160, 0.1);
    color: var(--primary-color);
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    margin-left: 0.3rem;
    vertical-align: middle;
}
 
@media (prefers-color-scheme: dark) {
    .function-examples {
        background-color: rgba(44, 125, 160, 0.08);
        border-color: rgba(44, 125, 160, 0.2);
    }
    
    .example-btn {
        background-color: rgba(44, 125, 160, 0.15);
        border-color: rgba(44, 125, 160, 0.3);
        color: #a9d6e5;
    }
    
    .example-btn:hover {
        background-color: rgba(44, 125, 160, 0.25);
        border-color: var(--secondary-color);
    }
}