/* NOTIFICATIONS                              */
/* Toast notifications: success, warning,     */
/* error, info. Slide-in animation.           */

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 99999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

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

/* On phones the nav bar owns the bottom, so dock the toast to the top instead. */
@media (max-width: 640px) {
    .notification {
        bottom: auto;
        top: calc(env(safe-area-inset-top, 0px) + 12px);
        left: auto;
        right: 12px;
        max-width: 60%;
        transform: translateX(120%);
    }
    .notification.show { transform: translateX(0); }
}

.notification.success {
    border-left: 4px solid #22c55e;
}

.notification.success i {
    color: #22c55e;
}

.notification.warning {
    border-left: 4px solid #f59e0b;
}

.notification.warning i {
    color: #f59e0b;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.error i {
    color: #ef4444;
}

.notification.info {
    border-left: 4px solid #3b82f6;
}

.notification.info i {
    color: #3b82f6;
}

/* Conflict Warning */
.conflict-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #92400e;
}

.conflict-warning i {
    color: #f59e0b;
    margin-right: 0.5rem;
}

.conflict-warning ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.conflict-warning li {
    margin: 0.25rem 0;
}

#conflictWarning {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
}

.conflict-warning-box {
    background: #fef3cd;
    border: 1px solid #f0ad4e;
    color: #856404;
}

.conflict-error-box {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

.conflict-success-box {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
}

.conflict-title {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.conflicting-apt {
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 10px;
    border-radius: 4px;
    margin: 6px 0;
    font-size: 12px;
}

.alt-time-suggestions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alt-time-btn {
    padding: 4px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.alt-time-btn:hover {
    background: #f0f0f0;
    border-color: #007bff;
}
