/* Success Modal - Two Rows Layout with Headings */

.sem-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    
}

.sem-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sem-modal-content {
    background: var(--modal-bg, #ffffff);
    border-radius: 16px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    
    
}

.sem-modal-overlay.active .sem-modal-content {
    
}

/* Close Button */
.sem-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    
}


/* Success Icon */
.sem-success-icon {
    width: 64px;
    height: 64px;
    background: var(--icon-color, #10b981);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* Title & Message */
.sem-title {
    color: var(--title-color, #1f2937);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
    text-align: center;
}

.sem-message {
    color: #6b7280;
    font-size: 16px;
    margin: 0 0 32px;
    text-align: center;
}

/* Actions Container */
.sem-actions-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Section */
.sem-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Section Title */
.sem-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    text-align: center;
}

/* Buttons Row */
.sem-buttons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.sem-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--button-border, #e5e7eb);
    border-radius: 10px;
    background: var(--button-bg, #ffffff);
    color: var(--button-text, #374151);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    
    white-space: nowrap;
}

.sem-btn svg {
    width: 20px;
    height: 20px;
}


/* Calendar Buttons - Keep hover styles for backwards compatibility */

/* Share Buttons - Keep hover styles for backwards compatibility */

/* Toast */
.sem-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    
    background: #1f2937;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    
    z-index: 9999999;
}

.sem-toast.show {
    
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sem-modal-content {
        padding: 32px 24px;
        width: 95%;
    }
    
    .sem-buttons-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 #f1f5f9;
        padding-bottom: 8px;
        justify-content: flex-start;
    }
    
    .sem-buttons-row::-webkit-scrollbar {
        height: 6px;
    }
    
    .sem-buttons-row::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 3px;
    }
    
    .sem-buttons-row::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }
    
    
    .sem-btn {
        flex-shrink: 0;
        min-width: max-content;
    }
    
    .sem-title {
        font-size: 24px;
    }
    
    .sem-message {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .sem-actions-container {
        gap: 20px;
    }
    
    .sem-section-title {
        text-align: left;
        padding-left: 4px;
    }
}

@media (max-width: 480px) {
    .sem-modal-content {
        padding: 24px 20px;
    }
    
    .sem-success-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
    
    .sem-title {
        font-size: 22px;
    }
    
    .sem-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .sem-section-title {
        font-size: 13px;
    }
}
