/* ---------- Toast Notifications ---------- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--color-primary);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: var(--status-present);
}

.toast-error {
    border-left-color: var(--status-absent);
}

.toast-warning {
    border-left-color: var(--status-late);
}

.toast-info {
    border-left-color: var(--color-primary);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 18px;
}

.toast-message {
    font-size: 14px;
    color: var(--color-gray-800);
}

.toast-close {
    background: none;
    border: none;
    color: var(--color-gray-500);
    cursor: pointer;
    font-size: 20px;
    padding: 0 0 0 12px;
    line-height: 1;
}

.toast-close:hover {
    color: var(--color-gray-800);
}

/* ---------- Form Validation ---------- */
.form-input.error,
.form-select.error {
    border-color: var(--status-absent);
    background-color: rgba(231, 76, 60, 0.05);
}

.error-message {
    color: var(--status-absent);
    font-size: 12px;
    margin-top: 4px;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}