.curriculum-container {
    min-height: 100vh;
    padding-top: 0px !important;
    padding-bottom: 60px;
    font-family: 'Quicksand', '-apple-system', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.topic-container {
    max-width: 1225px;
    margin: 0 auto;
    background: transparent;
    border-radius: 12px;
    padding: 30px;
    color: #1f3c70;
    line-height: 1.8;
}

.breadcrumb-container {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
    padding-left: 0px !important;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    align-items: center;
}

.breadcrumb li {
    color: #4591F6 !important;
    font-weight: 500;
    font-size: 18px;
}

.breadcrumb-item {
    color: #275CA5;
}

.breadcrumb-item.active {
    color: #6C757D !important;
    font-size: 18px;
    font-weight: 400;
}

.breadcrumb-item a {
    font-size: 18px;
    font-weight: 400;
    color: #162B60;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #1e4a8a;
    text-decoration: underline;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">>";
    color: #626262;
    font-weight: 400;
    font-size: 18px;
    margin-inline: 4px;
}

#topic-name {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #275CA5;
    text-align: center;
}

.section-title {
    color: #2C2C2C;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.section-block {
    /* margin-bottom: 10px; */
}

.level-section {
    text-align: center;
}

.level-loader {
    padding: 40px 0;
    max-width: 800px;
    height: 465px;
    text-align: center !important;
}

.level-iframe-wrapper {
    max-width: 800px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    text-align: left !important;
}

.get-started-section {
    text-align: center;
    padding: 30px 0;
}

.get-started-btn {
    background: #275CA5;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(39, 92, 165, 0.2);
}

.get-started-btn:hover {
    background: #1e4a8a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(39, 92, 165, 0.3);
    text-decoration: none;
}

#topic-outline {
    color: #626262;
    line-height: 32px;
    font-weight: 400;
    font-size: 18px;
}

#topic-outline p,
#topic-outline li {
    margin-bottom: 6px;
}

#topic-outline ul,
#topic-outline ol {
    padding-left: 20px;
}

.youtube-section {
    text-align: center;
    margin-top: 60px;
}

.youtube-video-wrapper {
    max-width: 800px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.related-topics-title {
    color: #275CA5;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.related-topics-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4591F6;
    border-radius: 2px;
}

.related-topic-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(39, 92, 165, 0.1);
    transition: all 0.3s ease;
    height: 250px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(39, 92, 165, 0.1);
    cursor: pointer;
    text-decoration: none;
}

.related-topic-thumbnail-wrapper {
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #e1efff 100%);
}

.related-topic-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-topic-thumbnail-placeholder {
    height: 160px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e1efff 100%);
}

.related-topic-content {
    padding: 15px 10px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60px;
    max-height: 80px;
}

.related-topic-name {
    color: #275CA5;
    line-height: 1.3;
    text-decoration: none;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
    padding: 0 5px;
    color: #162B60;
    font-size: 18px;
    font-weight: 500;
}

.embed-section {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

.embed-options-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #eef5ff;
}

#secureEmbedCode {
    resize: vertical;
    min-height: 150px;
    font-family: 'Quicksand', monospace;
    font-size: 14px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

#copyEmbedBtn {
    color: white;
    background: #275CA5;
    border-color: #275CA5;
}

#copyEmbedBtn:hover {
    color: white;
    background: #275CA5;
    border-color: #275CA5;
}

#testEmbedBtn {
    color: #275CA5;
    border-color: #275CA5;
}

#testEmbedBtn:hover {
    background: #275CA5;
    color: white;
}

.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#embedPreview iframe {
    width: 100%;
    height: 300px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.instructions-box {
    background: #f8fbff;
    border-left: 4px solid #4591F6;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.instructions-box ul {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .related-topic-card {
        height: 240px;
    }
    
    .related-topic-thumbnail-wrapper {
        height: 140px;
    }
    
    .related-topic-thumbnail-placeholder {
        height: 140px;
    }
    
    .related-topic-content {
        padding: 12px 8px;
        min-height: 50px;
        max-height: 70px;
    }
    
    .related-topic-name {
        font-size: 1rem;
    }
    
    #topic-outline li {
        margin-bottom: 0px;
    }
    
    .topic-container {
        padding: 15px;
    }

    .breadcrumb-container {
        padding: 12px 15px;
        margin-bottom: 20px;
        padding-left: 0px !important;
    }

    #topic-name {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .level-iframe-wrapper,
    .youtube-video-wrapper {
        height: 250px;
    }

    .related-topics-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(39, 92, 165, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-success {
    background-color: #275CA5 !important;
    border-color: #1e4a8a !important;
}

.toast-error {
    background-color: #dc3545 !important;
    border-color: #c82333 !important;
}

.toast-warning {
    background-color: #ffc107 !important;
    border-color: #e0a800 !important;
    color: #212529 !important;
}

.toast-info {
    background-color: #17a2b8 !important;
    border-color: #138496 !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.show {
    animation: slideInRight 0.3s ease-out;
}

.embed-modal-preview {
    height: 300px;
    background: #f8fbff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.embed-modal-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-header {
    border-radius: 8px 8px 0 0;
}

.modal-content {
    border-radius: 12px;
    border: 2px solid #eef5ff;
}

#modalEmbedCode {
    resize: none;
    font-family: 'Quicksand', monospace;
    font-size: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    /* min-height: 200px; */
}

#modalCopyBtn:hover {
    background: #275CA5;
    border-color: #275CA5;
    color: white;
}

#modalCopyBtn {
    background: white;
    border-color: #275CA5;
    color: #275CA5;
}

/* #modalTestBtn {
    color: #275CA5;
    border-color: #275CA5;
}

#modalTestBtn:hover {
    background: #275CA5;
    color: white;
} */

.modal-backdrop {
    background-color: rgba(39, 92, 165, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.fade .modal-dialog {
    animation: fadeIn 0.3s ease-out;
}

#embedModal.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    z-index: 1055;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

#embedModal.modal.show {
    opacity: 1;
}
/* 
#embedModal.modal .modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    margin: 0;
    max-width: 800px;
    width: 90%;
    transition: transform 0.3s ease-out;
    opacity: 0;
} */

#embedModal.modal.show .modal-dialog {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal.fade .modal-dialog {
    transition: none !important;
}

.modal-backdrop {
    background-color: rgba(39, 92, 165, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.modal-backdrop.show {
    opacity: 0.5;
}

#embedModal .modal-content {
    border-radius: 12px;
    border: 2px solid #eef5ff;
    box-shadow: 0 20px 60px rgba(39, 92, 165, 0.3);
}

@media (max-width: 768px) {
    #embedModal.modal .modal-dialog {
        width: 95%;
        max-height: 90vh;
    }
    
    #embedModal .modal-content {
        max-height: 85vh;
        overflow-y: auto;
    }
}

 .social-icons-row {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
        text-align: center;
    }
    
    .social-icon-item {
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .embed-container .modal {
    position: absolute !important; /* Change from fixed to absolute */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    overflow: auto;
}
    
    .social-icon-item:hover {
        transform: translateY(-2px);
    }
    
    .social-icon-circle {
        width: 48px;
        height: 48px;
        background: #f8f9fa;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 8px;
        border: 1px solid #e9ecef;
        transition: all 0.2s ease;
    }
    
    .social-icon-item:hover .social-icon-circle {
        background: #275CA5;
        border-color: #275CA5;
    }
    
    .social-icon-item:hover .social-icon-circle i {
        color: white !important;
    }
    
    .social-icon-circle i {
        font-size: 20px;
        color: #495057;
    }
    
    .social-icon-label {
        font-size: 12px;
        color: #495057;
        font-weight: 500;
    }
    
    .social-icon-item:hover .social-icon-label {
        color: #275CA5;
    }
    
    /* Input Group Fix */
    .share-link-section .form-control:focus {
        box-shadow: none;
        border-color: #dee2e6;
    }

    .copy-btn-wrapper {
    display: flex;
    justify-content: flex-end;
        margin-top: 10px;
}


        /* body { 
            margin: 0; 
            padding: 0; 
            overflow: hidden; 
            background: #f5f7fa;
            font-family: Quicksand, BlinkMacSystemFont, sans-serif;
        }
         */
        /* .embed-container { 
            position: relative; 
            width: 100%; 
            height: 100vh;
            display: flex;
            flex-direction: column;
        } */
        
        /* Main content area (takes remaining space) */
        .embed-content {
            flex: 1;
            position: relative;
            width: 100%;
            min-height: 0; /* Important for flex child */
        }
        
        /* Footer (fixed height at bottom) */
        .embed-footer {
            flex-shrink: 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 3px 15px;
            background: rgba(39, 92, 165, 0.95);
            color: #fff;
            font-size: 12px;
            height: 44px; /* Fixed height for footer */
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            box-sizing: border-box;
        }
        
        .loading-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #f5f7fa;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            transition: opacity 0.3s ease;
        }
        
        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(39, 92, 165, 0.2);
            border-radius: 50%;
            border-top-color: #275CA5;
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        #mainIframe {
            opacity: 0;
            transition: opacity 0.3s ease;
            width: 100%;
            height: 100%;
            border: none;
        }
        
        #mainIframe.loaded {
            opacity: 1;
        }
        
        .footer-logo a {
            display: flex;
            align-items: center;
            text-decoration: none;
        }
        
        .footer-logo img {
            height: 30px;
            width: auto;
        }
        
        #copyEmbedBtn {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 5px 10px;
            font-size: 12px;
            border: none;
            border-radius: 4px;
            background-color: #fff;
            color: #275CA5;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        
        #copyEmbedBtn:hover {
            background-color: #f0f0f0;
        }
        
        #copyEmbedBtn.copied {
            background-color: #28a745;
            color: white;
        }
        
        /* Responsive for small screens */
        @media (max-width: 480px) {
            .embed-footer {
                flex-direction: row;
                height: auto;
                padding: 8px 15px;
                gap: 8px;
            }
            
            .footer-logo, .footer-copy {
                width: 100%;
                justify-content: end;
            }
            
            .footer-logo img {
                height: 25px;
            }
        }
    







        /* Main container for the entire embed section */
.embed-container { 
    position: relative; 
    width: 100%; 
    max-width: 800px; /* Match iframe width */
    
    display: flex;
    flex-direction: column;
    border-radius: 8px; /* Rounded corners for entire container */
    overflow: hidden; /* Ensures everything stays within border radius */
 
}

/* Main content area */
.embed-content {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: 0;
}

/* Level section adjustments */
.level-section {
    width: 100%;
    border-radius: 8px 8px 0 0; /* Rounded top corners only */
    overflow: hidden;
}

.level-iframe-wrapper {
    width: 100%;
    /* height: 100%; */
    min-height: 400px; /* Set minimum height */
}

#level-iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    display: block;
    border-radius: 8px 8px 0 0; /* Match top corners */
}

/* Footer styling - fixed */
.embed-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Remove vertical padding to eliminate gap */
    background: #275CA5; /* Solid blue color */
    color: #fff;
    font-size: 12px;
    height: 44px;
    box-sizing: border-box;
    margin-top: -10px; /* Remove any margin */
    border-radius: 0 0 8px 8px; /* Bottom rounded corners */
    width: 100%; /* Ensure full width */
}

/* Ensure iframe loader matches container */
.level-loader {
    padding: 40px 0;
    width: 100%; /* Full width of container */
    height: 400px !important; /* Match iframe height */
    text-align: center !important;
    border-radius: 8px 8px 0 0; /* Match container top corners */
    background: #f5f7fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0; /* Remove any margin */
}

/* Loading spinner styling */
.spinner-border {
    width: 2rem;
    height: 2rem;
    color: #275CA5;
}

/* Footer button styling */
.footer-copy {
    display: flex;
    align-items: center;
}

#copyEmbedBtn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    background-color: #fff;
    color: #275CA5;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    height: 32px; /* Fixed height */
}

#copyEmbedBtn:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

#copyEmbedBtn.copied {
    background-color: #28a745;
    color: white;
}

/* Logo styling */
.footer-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 44px; /* Match footer height */
}

.footer-logo img {
    height: 24px; /* Slightly smaller */
    width: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .embed-container {
        border-radius: 6px;
        max-width: 100%;
    }
    
    .level-iframe-wrapper,
    #level-iframe {
        min-height: 400px;
    }
    
    .level-loader {
        height: 465px;
    }
    
    .embed-footer {
        padding: 0 15px;
        height: 40px;
        border-radius: 0 0 6px 6px;
    }
    
    .footer-logo img {
        height: 20px;
    }
    
    #copyEmbedBtn {
        padding: 5px 10px;
        font-size: 11px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .embed-footer {
        padding: 0 12px;
        height: 36px;
    }
    
    .footer-logo img {
        height: 18px;
    }
    
    #copyEmbedBtn {
        padding: 4px 8px;
        font-size: 10px;
        height: 28px;
    }
    
    #copyEmbedBtn span {
        font-size: 11px;
    }
}




/* Modal Height Fix */
/* #embedModal.modal .modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: 500px !important;
    width: 90% !important;
    height: auto !important;
    max-height: 400px !important;
} */

#embedModal .modal-content {
    max-height: 320px;
    overflow-y: auto;
    border-radius: 12px;
}

/* Modal Body Height */
#embedModal .modal-body {
    padding: 20px;
    max-height: 320px;
    overflow-y: auto;
}

/* Single-line Textarea with Copy Button */
.share-input-group {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

#modalEmbedCode {
    resize: none;
    font-family: 'Quicksand', monospace;
    font-size: 14px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px 0 0 8px;
    padding: 12px 15px;
    height: 48px !important;
    line-height: 24px;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#modalCopyBtn {
    background: #275CA5;
    border-color: #275CA5;
    color: white;
    border-radius: 0 8px 8px 0;
    padding: 0 20px;
    height: 48px;
    min-width: 80px;
    font-weight: 600;
    transition: all 0.2s ease;
}

#modalCopyBtn:hover {
    background: #1e4a8a;
    border-color: #1e4a8a;
}

#modalCopyBtn:active {
    transform: scale(0.98);
}

/* Remove copy button wrapper */
.copy-btn-wrapper {
    display: none;
}

/* Social Icons Grid */
.social-icons-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.social-icon-item {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 0;
}

.social-icon-item:hover {
    transform: translateY(-2px);
}

.social-icon-circle {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.social-icon-item:hover .social-icon-circle {
    background: #275CA5;
    border-color: #275CA5;
}

.social-icon-item:hover .social-icon-circle i {
    color: white !important;
}

.social-icon-circle i {
    font-size: 20px;
    color: #495057;
}

.social-icon-label {
    font-size: 12px;
    color: #495057;
    font-weight: 500;
    text-align: center;
}

.social-icon-item:hover .social-icon-label {
    color: #275CA5;
}

/* Modal Footer */
#embedModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
    justify-content: center;
}

#modalCloseBtn {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
    padding: 8px 30px;
    border-radius: 6px;
    font-weight: 500;
}

#modalCloseBtn:hover {
    background: #5a6268;
    border-color: #545b62;
}

/* Responsive */
@media (max-width: 576px) {
    #embedModal.modal .modal-dialog {
        width: 95% !important;
        max-width: 95% !important;
    }
    
    .social-icons-row {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }
    
    #modalEmbedCode {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    #modalCopyBtn {
        padding: 0 15px;
        min-width: 70px;
        font-size: 14px;
    }
}



/* Modal Height Fix */
/* #embedModal.modal .modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: 500px !important;
    width: 90% !important;
    height: auto !important;
    max-height: 400px !important;
} */

#embedModal .modal-content {
    max-height: 320px;
    overflow-y: auto;
    border-radius: 12px;
}

/* Modal Body Height */
#embedModal .modal-body {
    padding: 20px;
    max-height: 320px;
    overflow-y: auto;
}

/* Code Container with Border and Button Inside */
.code-display-container {
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
    background: #f8f9fa;
    height: 50px;
    position: relative;
}

.code-display {
    flex: 1;
    padding: 12px 15px;
    font-family: 'Courier New', 'SF Mono', Monaco, monospace;
    font-size: 14px;
    line-height: 24px;
    color: #212529;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border: none;
    background: transparent;
    outline: none;
    cursor: text;
    user-select: all;
}

.code-display::selection {
    background: #275CA5;
    color: white;
}

.code-display::-moz-selection {
    background: #275CA5;
    color: white;
}

/* Copy Button Inside Container */
.copy-button-inline {
    position: relative;
    background: #275CA5;
    color: white;
    border: none;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.copy-button-inline:hover {
    background: #1e4a8a;
}

.copy-button-inline:active {
    transform: scale(0.98);
}

.copy-button-inline.copied {
    background: #28a745;
    padding: 0 24px;
    min-width: 100px;
}

.copy-button-inline .button-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-button-inline .check-icon {
    display: none;
    font-size: 16px;
    animation: fadeIn 0.3s ease;
}

.copy-button-inline.copied .copy-text {
    display: none;
}

.copy-button-inline.copied .check-icon {
    display: inline-block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.copy-button-inline.copied {
    animation: pulse 0.3s ease;
}

/* Social Icons Grid */
.social-icons-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.social-icon-item {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 0;
}

.social-icon-item:hover {
    transform: translateY(-2px);
}

.social-icon-circle {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.social-icon-item:hover .social-icon-circle {
    background: #275CA5;
    border-color: #275CA5;
}

.social-icon-item:hover .social-icon-circle i {
    color: white !important;
}

.social-icon-circle i {
    font-size: 20px;
    color: #495057;
}

.social-icon-label {
    font-size: 12px;
    color: #495057;
    font-weight: 500;
    text-align: center;
}

.social-icon-item:hover .social-icon-label {
    color: #275CA5;
}

/* Responsive */
@media (max-width: 576px) {
    #embedModal.modal .modal-dialog {
        width: 95% !important;
        max-width: 95% !important;
    }
    
    .social-icons-row {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }
    
    .code-display {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .copy-button-inline {
        padding: 0 12px;
        min-width: 65px;
        font-size: 13px;
    }
    
    .copy-button-inline.copied {
        padding: 0 16px;
        min-width: 85px;
    }
}




.embed-container .modal.show {
    display: block;
}

.embed-container .modal-dialog {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: 500px !important;
    width: 90% !important;
}

/* Modal backdrop within container */
.embed-container .modal-backdrop {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(39, 92, 165, 0.3) !important;
    z-index: 9998;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}