/* Notification System */

/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Toast */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.toast-visible {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.toast-message {
    flex: 1;
    font-size: var(--font-base);
    line-height: 1.5;
    color: #333;
}

.toast-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    font-size: 18px;
    color: #999;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 500;
    line-height: 1;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
    border-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.toast-close:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.12);
}

/* Toast Types */
.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

/* Notification Modal */
.notify-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s;
    pointer-events: auto;
    z-index: var(--z-modal-high);
}

.notify-modal-visible {
    background: rgba(0, 0, 0, 0.5);
}

.notify-modal-content {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.2s;
}

.notify-modal-visible .notify-modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.notify-modal-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notify-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notify-modal-icon svg {
    width: 24px;
    height: 24px;
}

.notify-modal-icon-success {
    background: #d1fae5;
    color: #10b981;
}

.notify-modal-icon-error {
    background: #fee2e2;
    color: #ef4444;
}

.notify-modal-icon-warning {
    background: #fef3c7;
    color: #f59e0b;
}

.notify-modal-icon-info {
    background: #dbeafe;
    color: #3b82f6;
}

.notify-modal-icon-danger {
    background: #fee2e2;
    color: #ef4444;
}

.notify-modal-title {
    margin: 0;
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    color: #111;
}

.notify-modal-body {
    padding: 0 24px 24px;
}

.notify-modal-body p {
    margin: 0;
    font-size: var(--font-base);
    line-height: 1.6;
    color: #666;
}

.notify-input {
    margin-top: 16px;
    padding: 10px 12px;
}

.notify-input-error {
    border-color: var(--color-danger);
}

.notify-input-error:focus {
    box-shadow: 0 0 0 3px var(--color-danger-light);
}

.notify-modal-footer {
    padding: 16px 24px;
    background: #f9fafb;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Choice Buttons */
.notify-choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.btn-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-base);
    font-weight: var(--font-medium);
    color: #333;
    text-align: left;
}

.btn-choice:hover {
    border-color: var(--color-primary);
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.btn-choice:active {
    transform: translateY(0);
}

.btn-choice:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-choice-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.btn-choice-icon svg {
    width: 20px;
    height: 20px;
}

.btn-choice-label {
    flex: 1;
}

/* Price Update Toast */
.price-update-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-md);
    min-width: 280px;
    max-width: 320px;
    z-index: var(--z-fixed);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-base);
    pointer-events: none;
}

.price-update-toast.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.toast-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text);
}

/* Spinner styles moved to base.css */

.toast-progress {
    margin-bottom: var(--spacing-xs);
}

.toast-progress-bar {
    height: 6px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.toast-progress-fill {
    height: 100%;
    background: var(--color-primary);
    transition: width 0.3s ease;
    border-radius: var(--radius-sm);
}

.toast-message {
    font-size: var(--font-sm);
    color: var(--color-text-muted);
}

.price-update-toast.toast-success {
    border-color: var(--color-success);
}

.price-update-toast.toast-success .toast-progress-fill {
    background: var(--color-success);
}

.price-update-toast.toast-error {
    border-color: var(--color-danger);
}

/* Toast Cancel Button */
.toast-cancel-btn {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.toast-cancel-btn:hover {
    color: var(--color-danger);
    background: var(--color-danger-light);
    border-color: var(--color-danger);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.toast-cancel-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
