/**
 * RA0 Notification System CSS
 */

/* Toast 알림 */
.ra0-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    background: var(--card-bg-color, #fff);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ra0-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.ra0-toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.ra0-toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

/* Toast 타입별 스타일 */
.ra0-toast-success .ra0-toast-icon {
    background: #10b981;
    color: #fff;
}

.ra0-toast-error .ra0-toast-icon {
    background: #ef4444;
    color: #fff;
}

.ra0-toast-info .ra0-toast-icon {
    background: #3b82f6;
    color: #fff;
}

.ra0-toast-warning .ra0-toast-icon {
    background: #f59e0b;
    color: #fff;
}

/* Modal 오버레이 */
.ra0-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}

.ra0-modal-overlay.show {
    opacity: 1;
}

.ra0-modal-overlay.show .ra0-modal {
    transform: scale(1);
    opacity: 1;
}

/* Modal */
.ra0-modal {
    background: var(--card-bg-color, #fff);
    border-radius: 12px;
    min-width: 400px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ra0-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.ra0-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color, #1f2937);
}

.ra0-modal-body {
    padding: 24px;
}

.ra0-modal-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary, #6b7280);
}

.ra0-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Modal 버튼 */
.ra0-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ra0-btn-confirm {
    background: var(--primary-color, #667eea);
    color: #fff;
}

.ra0-btn-confirm:hover {
    background: var(--primary-hover, #5568d3);
    transform: translateY(-1px);
}

.ra0-btn-cancel {
    background: var(--card-bg-color, #f3f4f6);
    color: var(--text-color, #374151);
}

.ra0-btn-cancel:hover {
    background: #e5e7eb;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .ra0-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .ra0-modal {
        min-width: auto;
        width: 90vw;
        margin: 20px;
    }
}
