/* Modern Toast Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.notification.error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fef1f1 100%);
}

.notification.info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
}

.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #10b981;
}

.notification.error .notification-icon {
    background: #ef4444;
}

.notification.info .notification-icon {
    background: #3b82f6;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px 0;
    color: #111827;
}

.notification-message {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.05);
}

/* Dark theme support */
[data-theme="dark"] .notification {
    background: #1f2937;
    color: #f9fafb;
}

[data-theme="dark"] .notification.success {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}

[data-theme="dark"] .notification.error {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
}

[data-theme="dark"] .notification.info {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
}

[data-theme="dark"] .notification-title {
    color: #f9fafb;
}

[data-theme="dark"] .notification-message {
    color: #d1d5db;
}

[data-theme="dark"] .notification-close {
    color: #9ca3af;
}

[data-theme="dark"] .notification-close:hover {
    color: #f3f4f6;
    background: rgba(255, 255, 255, 0.1);
}

/* Animation for removal */
.notification.removing {
    transform: translateX(100%);
    opacity: 0;
}

/* Form validation styles */
.form-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-input:valid:not(:focus):not(:placeholder-shown) {
    border-color: #10b981;
}

/* Dark theme form validation */
[data-theme="dark"] .form-error {
    color: #fca5a5;
}

[data-theme="dark"] .form-input.error {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

[data-theme="dark"] .form-input.valid {
    border-color: #34d399 !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}
