/* CS-TGS Conference Modal System Styles */

/* Modal Overlay */
.cs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    animation: cs-modal-fadeIn 0.3s ease-out;
}

.cs-modal-overlay.show {
    display: flex;
}

/* Modal Content */
.cs-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: cs-modal-slideIn 0.3s ease-out;
    overflow: hidden;
}

/* Modal Header */
.cs-modal-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cs-modal-header.warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.cs-modal-header.error {
    background: linear-gradient(135deg, #dc3232 0%, #b32d2d 100%);
}

.cs-modal-header.success {
    background: linear-gradient(135deg, #46b450 0%, #2e8b57 100%);
}

.cs-modal-icon {
    font-size: 24px;
    min-width: 24px;
}

.cs-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Modal Body */
.cs-modal-body {
    padding: 25px;
}

.cs-modal-message {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 0 0 20px 0;
    white-space: pre-line;
}

/* Modal Actions */
.cs-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Modal Buttons */
.cs-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.cs-modal-btn-primary {
    background: #0073aa;
    color: white;
}

.cs-modal-btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.cs-modal-btn-danger {
    background: #dc3232;
    color: white;
}

.cs-modal-btn-danger:hover {
    background: #b32d2d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 50, 50, 0.3);
}

.cs-modal-btn-secondary {
    background: #f1f1f1;
    color: #666;
    border: 1px solid #ddd;
}

.cs-modal-btn-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

/* Animations */
@keyframes cs-modal-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes cs-modal-slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .cs-modal-content {
        width: 95%;
        margin: 20px;
    }

    .cs-modal-header {
        padding: 15px 20px;
    }

    .cs-modal-body {
        padding: 20px;
    }

    .cs-modal-message {
        font-size: 14px;
    }

    .cs-modal-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 80px;
    }
}
