/* Frontend Styles for Irish Vocabulary Plugin */

.ivl-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

.ivl-header h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.ivl-header p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.ivl-lesson-progress-section {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.ivl-progress-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.ivl-progress-card h3 {
    font-size: 24px;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.ivl-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.ivl-stat {
    text-align: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 120px;
}

.ivl-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #2c5f2d;
    line-height: 1;
    margin-bottom: 5px;
}

.ivl-stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ivl-lessons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.ivl-lesson-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ivl-lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ivl-lesson-card h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #1a1a1a;
}

.ivl-lesson-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ivl-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0 8px 0;
}

.ivl-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2c5f2d 0%, #4a9d4c 100%);
    transition: width 0.3s ease;
}

.ivl-progress-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.ivl-start-lesson {
    width: 100%;
    padding: 12px 20px;
    background: #2c5f2d;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ivl-start-lesson:hover {
    background: #234d24;
}

.ivl-practice-area {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.ivl-practice-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
}

.ivl-practice-header h3 {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
}

.ivl-lesson-progress-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    top: 10px;
}

.ivl-lesson-progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.ivl-lesson-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2c5f2d 0%, #4a9d4c 100%);
    transition: width 0.3s ease;
    width: 0%;
}

.ivl-lesson-progress-text {
    display: none; /* Hide the "1 of 5" text */
}

.ivl-question-container {
    min-height: 300px;
}

.ivl-question {
    text-align: center;
}

.ivl-question-text {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.ivl-question-type {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.ivl-audio-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #2c5f2d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 30px;
    transition: background 0.2s;
}

.ivl-audio-button:hover {
    background: #234d24;
}

.ivl-audio-button:before {
    content: "🔊";
    font-size: 20px;
}

.ivl-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.ivl-choice {
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.ivl-choice:hover {
    background: #e8f5e9;
    border-color: #2c5f2d;
}

.ivl-choice.selected {
    background: #2c5f2d;
    color: #fff;
    border-color: #2c5f2d;
}

.ivl-choice.correct {
    background: #4caf50;
    color: #fff;
    border-color: #4caf50;
}

.ivl-choice.incorrect {
    background: #f44336;
    color: #fff;
    border-color: #f44336;
}

.ivl-input-container {
    margin: 30px 0;
}

.ivl-text-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ivl-text-input:focus {
    outline: none;
    border-color: #2c5f2d;
}

.ivl-submit-answer {
    width: 100%;
    padding: 15px 20px;
    background: #2c5f2d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 20px;
}

.ivl-submit-answer:hover {
    background: #234d24;
}

.ivl-submit-answer:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ivl-feedback {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.ivl-feedback.correct {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #4caf50;
}

.ivl-feedback.incorrect {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #f44336;
}

.ivl-correct-answer {
    margin-top: 10px;
    font-size: 16px;
}

.ivl-next-question {
    width: 100%;
    padding: 15px 20px;
    background: #2c5f2d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

.ivl-next-question:hover {
    background: #234d24;
}

.ivl-results {
    text-align: center;
    margin: 30px 0;
}

.ivl-results p {
    font-size: 20px;
    margin: 15px 0;
    color: #1a1a1a;
}

.ivl-results span {
    font-weight: 700;
    color: #2c5f2d;
}

.ivl-button-primary {
    padding: 15px 40px;
    background: #2c5f2d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ivl-button-primary:hover {
    background: #234d24;
}

.ivl-notice {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    text-align: center;
    font-size: 16px;
}

@media (max-width: 768px) {
    .ivl-lessons {
        grid-template-columns: 1fr;
    }
    
    .ivl-choices {
        grid-template-columns: 1fr;
    }
    
    .ivl-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .ivl-practice-area {
        padding: 20px;
    }
}

/* Section view styles */
.ivl-section-view {
    max-width: 1200px;
}

.ivl-lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.ivl-lesson-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
}

.ivl-lesson-card.unlocked {
    border-color: #2c5f2d;
}

.ivl-lesson-card.completed {
    background: #f0f8f0;
    border-color: #4a9d4c;
}

.ivl-lesson-card.locked {
    background: #f5f5f5;
    opacity: 0.7;
}

.ivl-lesson-card:not(.locked):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ivl-lesson-number {
    display: inline-block;
    background: #2c5f2d;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.ivl-lesson-card.locked .ivl-lesson-number {
    background: #999;
}

.ivl-completion-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4a9d4c;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.ivl-lock-icon {
    font-size: 48px;
    text-align: center;
    margin: 20px 0;
    opacity: 0.5;
}

.ivl-lesson-card h3 {
    margin: 10px 0;
    font-size: 22px;
    color: #1a1a1a;
}

.ivl-lesson-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0;
}

.ivl-lesson-stats {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.ivl-locked-message {
    color: #999;
    font-style: italic;
    text-align: center;
    margin: 20px 0 0 0;
}

@media (max-width: 768px) {
    .ivl-lessons-grid {
        grid-template-columns: 1fr;
    }
}

/* Fullscreen mode */
.ivl-practice-area.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 40px !important;
    background: #fff !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Hide all theme elements during fullscreen */
body.ivl-fullscreen-active .ivl-hidden-for-fullscreen {
    display: none !important;
    visibility: hidden !important;
}

/* Hide theme elements when in fullscreen mode */
body:has(.ivl-practice-area.fullscreen) header,
body:has(.ivl-practice-area.fullscreen) .site-header,
body:has(.ivl-practice-area.fullscreen) .ast-header,
body:has(.ivl-practice-area.fullscreen) .ast-mobile-header-wrap,
body:has(.ivl-practice-area.fullscreen) .ast-desktop-header,
body:has(.ivl-practice-area.fullscreen) #masthead,
body:has(.ivl-practice-area.fullscreen) nav,
body:has(.ivl-practice-area.fullscreen) footer,
body:has(.ivl-practice-area.fullscreen) .site-footer {
    display: none !important;
}

/* Prevent body scroll when in fullscreen */
body:has(.ivl-practice-area.fullscreen) {
    overflow: hidden !important;
}

/* Alternative for older browsers that don't support :has() */
body.ivl-fullscreen-active header,
body.ivl-fullscreen-active .site-header,
body.ivl-fullscreen-active .ast-header,
body.ivl-fullscreen-active .ast-mobile-header-wrap,
body.ivl-fullscreen-active .ast-desktop-header,
body.ivl-fullscreen-active #masthead,
body.ivl-fullscreen-active nav,
body.ivl-fullscreen-active footer,
body.ivl-fullscreen-active .site-footer {
    display: none !important;
}

/* Ensure admin bar stays visible for logged-in users */
body.ivl-fullscreen-active #wpadminbar {
    display: block !important;
    visibility: visible !important;
}

/* Adjust practice area if admin bar is present */
body.admin-bar .ivl-practice-area.fullscreen {
    top: 32px !important;
    height: calc(100vh - 32px) !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .ivl-practice-area.fullscreen {
        top: 46px !important;
        height: calc(100vh - 46px) !important;
    }
}

/* Background image support */
.ivl-practice-area.fullscreen.has-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ivl-practice-area.fullscreen.has-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 0;
}

.ivl-practice-area.fullscreen > * {
    position: relative;
    z-index: 1;
}

/* Exit fullscreen button */
.ivl-exit-fullscreen {
    position: absolute;
    top: 10px;
    right: 20px;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    border-radius: 0;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.ivl-exit-fullscreen:hover {
    background: transparent;
    color: #333;
    transform: scale(1.1);
}

/* Adjust header in fullscreen */
.ivl-practice-area.fullscreen .ivl-practice-header {
    margin-top: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
}

/* Center content in fullscreen */
.ivl-practice-area.fullscreen #ivl-question-container {
    max-width: 800px;
    margin: 0 auto;
}

.ivl-practice-area.fullscreen #ivl-result-container {
    max-width: 600px;
    margin: 0 auto;
}


.ivl-text-input:focus {
    outline: none;
    border-color: #2c5f2d;
}

.ivl-accent-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ivl-accent-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.ivl-accent-btn sup {
    font-size: 12px;
    color: #666;
    margin-left: 2px;
}

.ivl-accent-btn:hover {
    background: #e8f5e9;
    border-color: #2c5f2d;
    transform: translateY(-1px);
}

.ivl-accent-btn:active {
    transform: translateY(0);
}

/* My Vocabulary Styles */
.ivl-my-vocab-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.ivl-my-vocab-table-container {
    overflow-x: auto;
    margin-top: 30px;
}

.ivl-my-vocab-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.ivl-my-vocab-table thead {
    background: #2c5f2d;
    color: #fff;
}

.ivl-my-vocab-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ivl-my-vocab-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.ivl-my-vocab-table tbody tr:hover {
    background: #f8f9fa;
}

.ivl-my-vocab-table tbody tr.ivl-needs-review {
    background: #fff3cd;
}

.ivl-my-vocab-table tbody tr.ivl-needs-review:hover {
    background: #ffe8a1;
}

.ivl-play-audio-btn {
    padding: 8px 15px;
    background: #2c5f2d;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.ivl-play-audio-btn:hover {
    background: #234d24;
}

.ivl-gender-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.ivl-gender-masculine {
    background: #e3f2fd;
    color: #1565c0;
}

.ivl-gender-feminine {
    background: #fce4ec;
    color: #c2185b;
}

.ivl-vocab-progress {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}

.ivl-vocab-progress .ivl-correct {
    color: #2e7d32;
    font-weight: 600;
}

.ivl-vocab-progress .ivl-incorrect {
    color: #c62828;
    font-weight: 600;
}

.ivl-vocab-progress .ivl-accuracy {
    color: #666;
    font-size: 13px;
}

.ivl-stage-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.ivl-stage-new {
    background: #e3f2fd;
    color: #1565c0;
}

.ivl-stage-typing {
    background: #fff3e0;
    color: #e65100;
}

.ivl-stage-mastered {
    background: #e8f5e9;
    color: #2e7d32;
}

@media (max-width: 768px) {
    .ivl-my-vocab-table {
        font-size: 14px;
    }
    
    .ivl-my-vocab-table th,
    .ivl-my-vocab-table td {
        padding: 10px 8px;
    }
    
    .ivl-vocab-progress {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}

.ivl-choice {
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
}

.ivl-choice-number {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    background: #2c5f2d;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    pointer-events: none; /* so clicks go through to the whole button */
    margin-right: 0; /* no longer needed */
}

.ivl-choice:hover .ivl-choice-number {
    background: #234d24;
}

.ivl-choice.selected .ivl-choice-number {
    background: #fff;
    color: #2c5f2d;
}

.ivl-choice.correct .ivl-choice-number {
    background: #fff;
    color: #4caf50;
}

.ivl-choice.incorrect .ivl-choice-number {
    background: #fff;
    color: #f44336;
}

/* Enter key icon styling */
.ivl-enter-key {
    display: inline-block;
    margin-left: auto;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 16px;
    font-weight: normal;
    vertical-align: middle;
}

.ivl-submit-answer,
.ivl-next-question {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ivl-submit-answer .ivl-enter-key,
.ivl-next-question .ivl-enter-key {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: auto;
}

.ivl-submit-answer:hover .ivl-enter-key,
.ivl-next-question:hover .ivl-enter-key {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.ivl-submit-answer:disabled .ivl-enter-key {
    opacity: 0.5;
}

/* Disabled lesson button */
.ivl-start-lesson:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.ivl-start-lesson:disabled:hover {
    background: #ccc;
    transform: none;
}

.ivl-review-message {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Vocabulary Review Section */
.ivl-vocab-review {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.ivl-vocab-review h4 {
    font-size: 22px;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 600;
}

.ivl-vocab-review-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.ivl-vocab-review-table thead {
    background: #2c5f2d;
    color: #fff;
}

.ivl-vocab-review-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ivl-vocab-review-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
}

.ivl-vocab-review-table tbody tr:last-child td {
    border-bottom: none;
}

.ivl-vocab-review-table tbody tr:hover {
    background: #f8f9fa;
}

.ivl-vocab-review-table .ivl-review-irish {
    font-weight: 700;
    color: #2c5f2d;
}

.ivl-vocab-review-table .ivl-review-english {
    color: #333;
}

.ivl-vocab-review-table .ivl-review-answer.correct {
    color: #2e7d32;
    font-size: 24px;
    font-weight: bold;
}

.ivl-vocab-review-table .ivl-review-answer.incorrect {
    color: #c62828;
    font-weight: 600;
}

.ivl-completion-notice {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #ffc107;
    text-align: center;
}

.ivl-completion-notice p {
    margin: 0;
    color: #856404;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ivl-vocab-review-table {
        font-size: 14px;
    }
    
    .ivl-vocab-review-table th,
    .ivl-vocab-review-table td {
        padding: 10px 8px;
    }
    
    .ivl-vocab-review-table th {
        font-size: 12px;
    }
    
    .ivl-vocab-review-table .ivl-review-answer.correct {
        font-size: 20px;
    }
}

/* Audio Settings Styles */

.ivl-audio-settings-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.ivl-audio-settings-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ivl-audio-settings-card h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #1a1a1a;
    text-align: center;
}

.ivl-audio-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s;
}

.ivl-audio-toggle:hover {
    background: #e8f5e9;
}

.ivl-audio-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ivl-audio-toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 26px;
    transition: background 0.3s;
    flex-shrink: 0;
}

.ivl-audio-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.ivl-audio-toggle input[type="checkbox"]:checked + .ivl-audio-toggle-slider {
    background: #2c5f2d;
}

.ivl-audio-toggle input[type="checkbox"]:checked + .ivl-audio-toggle-slider::before {
    transform: translateX(24px);
}

.ivl-audio-toggle-label {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    user-select: none;
}

.ivl-settings-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.ivl-settings-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.ivl-settings-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

@media (max-width: 768px) {
    .ivl-audio-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ivl-audio-toggle-label {
        font-size: 14px;
    }
}