/* Corporate Professional Notification System */
/* Clean, Minimal, Business-Friendly Design */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

/* Container */
#toast-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    font-family: "Noto Sans JP", sans-serif;
}

/* Base Toast Styling */
#toast-container > div {
    position: relative;
    pointer-events: auto;
    overflow: hidden;
    margin: 0 0 10px;
    padding: 16px 20px 16px 50px;
    width: 360px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06);
    color: #374151;
    opacity: 1;
    transform: translateX(100%);
    animation: slideIn 0.3s ease-out forwards;
    background: #ffffff;
}

#toast-container > div:hover {
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.12),
        0 3px 6px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

/* Success Toast - Professional Green */
#toast-container > .toast-success {
    background: #ffffff;
    border-left: 4px solid #10b981;
    color: #065f46;
}

#toast-container > .toast-success::before {
    content: "✓";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: #10b981;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error Toast - Professional Red */
#toast-container > .toast-error {
    background: #ffffff;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

#toast-container > .toast-error::before {
    content: "✕";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: #ef4444;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Info Toast - Professional Blue */
#toast-container > .toast-info {
    background: #ffffff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

#toast-container > .toast-info::before {
    content: "i";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    background: #3b82f6;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Warning Toast - Professional Orange */
#toast-container > .toast-warning {
    background: #ffffff;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

#toast-container > .toast-warning::before {
    content: "!";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: #f59e0b;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typography */
#toast-container .toast-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

#toast-container .toast-message {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.9;
}

/* Close Button */
#toast-container .toast-close-button {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #9ca3af;
    background: transparent;
    border: none;
    border-radius: 4px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

#toast-container .toast-close-button:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 6px 6px;
}

#toast-container > .toast-success .toast-progress {
    background: #10b981;
}

#toast-container > .toast-error .toast-progress {
    background: #ef4444;
}

#toast-container > .toast-info .toast-progress {
    background: #3b82f6;
}

#toast-container > .toast-warning .toast-progress {
    background: #f59e0b;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Position Classes */
.toast-top-right { top: 20px; right: 20px; }
.toast-top-left { top: 20px; left: 20px; }
.toast-bottom-right { bottom: 20px; right: 20px; }
.toast-bottom-left { bottom: 20px; left: 20px; }
.toast-top-center { 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: auto;
}
.toast-bottom-center { 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: auto;
}

/* Dark Theme Variants */
.corporate-dark #toast-container > div {
    background: #1f2937;
    border: 1px solid #374151;
    color: #f9fafb;
}

.corporate-dark #toast-container > .toast-success {
    color: #d1fae5;
}

.corporate-dark #toast-container > .toast-error {
    color: #fecaca;
}

.corporate-dark #toast-container > .toast-info {
    color: #dbeafe;
}

.corporate-dark #toast-container > .toast-warning {
    color: #fef3c7;
}

.corporate-dark #toast-container .toast-close-button {
    color: #9ca3af;
}

.corporate-dark #toast-container .toast-close-button:hover {
    background: #374151;
    color: #f9fafb;
}

/* Responsive Design */
@media (max-width: 480px) {
    #toast-container > div {
        width: calc(100vw - 40px);
        max-width: 340px;
        margin: 0 auto 8px;
        padding: 14px 18px 14px 46px;
    }
    
    #toast-container > div::before {
        width: 20px;
        height: 20px;
        left: 14px;
        font-size: 12px;
    }
    
    .toast-top-right, .toast-top-left,
    .toast-bottom-right, .toast-bottom-left {
        left: 20px;
        right: 20px;
        width: auto;
    }
    
    .toast-top-center, .toast-bottom-center {
        left: 20px;
        right: 20px;
        transform: none;
    }
}

/* Special Status Variants */
.toast-pending {
    background: #ffffff;
    border-left: 4px solid #6366f1;
    color: #4338ca;
}

.toast-pending::before {
    content: "⏳";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    background: #6366f1;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

/* High Priority Alert */
.toast-urgent {
    background: #ffffff;
    border: 2px solid #dc2626;
    border-left: 6px solid #dc2626;
    box-shadow: 
        0 4px 12px rgba(220, 38, 38, 0.2),
        0 2px 4px rgba(220, 38, 38, 0.1);
    animation: urgentPulse 0.5s ease-in-out 3;
}

@keyframes urgentPulse {
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(0) scale(1.02); }
} 