/**
 * CCE Platform Custom Notification Styles
 * Matches the platform's dark UI theme with red accents
 */

/* Toast Container - positioned top-right */
.cce-notify-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
    width: calc(100% - 40px);
}

/* Individual Toast */
.cce-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16162a 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'URW Dock', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    backdrop-filter: blur(10px);
}

.cce-toast-show {
    transform: translateX(0);
    opacity: 1;
}

.cce-toast-hide {
    transform: translateX(120%);
    opacity: 0;
}

/* Toast Icon */
.cce-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Toast Content */
.cce-toast-content {
    flex: 1;
    min-width: 0;
}

.cce-toast-message {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Toast Close Button */
.cce-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    margin: -4px -4px -4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.cce-toast-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Toast Type Variants */

/* Success - Green */
.cce-toast-success {
    border-left: 4px solid #2ecc71;
}

.cce-toast-success .cce-toast-icon {
    color: #2ecc71;
}

/* Error - Red (Platform accent) */
.cce-toast-error {
    border-left: 4px solid #f4012b;
    background: linear-gradient(135deg, #2a1a1a 0%, #1a1016 100%);
}

.cce-toast-error .cce-toast-icon {
    color: #f4012b;
}

/* Warning - Orange/Yellow */
.cce-toast-warning {
    border-left: 4px solid #f39c12;
}

.cce-toast-warning .cce-toast-icon {
    color: #f39c12;
}

/* Info - Blue */
.cce-toast-info {
    border-left: 4px solid #3498db;
}

.cce-toast-info .cce-toast-icon {
    color: #3498db;
}

/* ============================================ */
/* Confirm Modal Overlay */
/* ============================================ */

.cce-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.cce-confirm-overlay.cce-confirm-show {
    opacity: 1;
    visibility: visible;
}

/* Confirm Modal - Match Dashboard Style */
.cce-confirm-modal {
    background: linear-gradient(165deg, rgba(45, 45, 55, 0.98) 0%, rgba(20, 20, 28, 0.99) 50%, rgba(12, 12, 18, 1) 100%);
    border-radius: 16px;
    border: 1px solid rgba(100, 100, 120, 0.35);
    border-top: 1px solid rgba(150, 150, 170, 0.25);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.7),
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(244, 1, 43, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -2px 10px rgba(0, 0, 0, 0.2);
    padding: 0;
    max-width: 420px;
    width: 100%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'URW Dock', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Top accent bar */
.cce-confirm-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, #f4012b 30%, #ff4d6a 50%, #f4012b 70%, transparent 95%);
    z-index: 2;
}

/* Texture overlay */
.cce-confirm-modal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0,0,0,0.25) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.cce-confirm-overlay.cce-confirm-show .cce-confirm-modal {
    transform: scale(1) translateY(0);
}

/* Confirm Icon */
.cce-confirm-icon {
    width: 64px;
    height: 64px;
    margin: 28px auto 20px;
    background: linear-gradient(135deg, rgba(244, 1, 43, 0.15) 0%, rgba(244, 1, 43, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4012b;
    font-size: 28px;
    border: 2px solid rgba(244, 1, 43, 0.4);
    box-shadow:
        0 4px 20px rgba(244, 1, 43, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* Confirm Title */
.cce-confirm-title {
    font-family: 'Apex', 'URW Dock', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 32px 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

/* Confirm Message */
.cce-confirm-message {
    font-size: 0.9rem;
    color: #ff9800;
    line-height: 1.6;
    margin: 0 32px 28px;
    padding: 12px 16px;
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

/* Confirm Buttons */
.cce-confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 0 28px 28px;
    position: relative;
    z-index: 1;
}

.cce-confirm-btn {
    flex: 1;
    max-width: 150px;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: 'Apex', 'URW Dock', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    position: relative;
    overflow: hidden;
}

.cce-confirm-cancel {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(100, 100, 120, 0.4);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cce-confirm-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(150, 150, 170, 0.5);
    transform: translateY(-2px);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cce-confirm-ok {
    background: linear-gradient(135deg, rgba(244, 1, 43, 0.9) 0%, rgba(180, 0, 30, 0.95) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 80, 100, 0.4);
    box-shadow:
        0 4px 16px rgba(244, 1, 43, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cce-confirm-ok:hover {
    background: linear-gradient(135deg, rgba(255, 30, 60, 0.95) 0%, rgba(200, 0, 35, 1) 100%);
    border-color: rgba(255, 100, 120, 0.6);
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(244, 1, 43, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cce-confirm-ok:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(244, 1, 43, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ============================================ */
/* Responsive adjustments */
/* ============================================ */

@media (max-width: 480px) {
    .cce-notify-container {
        top: 80px;
        right: 12px;
        left: 12px;
        max-width: none;
        width: auto;
    }

    .cce-toast {
        padding: 12px;
    }

    .cce-confirm-modal {
        max-width: 340px;
        margin: 0 12px;
    }

    .cce-confirm-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        margin: 24px auto 16px;
    }

    .cce-confirm-title {
        font-size: 1.1rem;
        margin: 0 20px 10px;
        letter-spacing: 1.5px;
    }

    .cce-confirm-message {
        font-size: 0.85rem;
        margin: 0 20px 24px;
        padding: 10px 14px;
    }

    .cce-confirm-buttons {
        flex-direction: column;
        padding: 0 20px 24px;
    }

    .cce-confirm-btn {
        max-width: none;
        padding: 14px 24px;
    }
}

