/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    width: 100%;
}

.toast {
    background: var(--white);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-success i {
    color: #10b981;
}

.toast-error {
    border-left-color: var(--error);
}

.toast-error i {
    color: var(--error);
}

.toast-info {
    border-left-color: var(--primary);
}

.toast-info i {
    color: var(--primary);
}

.toast span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--gray-600);
}

/* Form Error Styles */
.form-input.error,
.form-textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
    color: var(--error);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.form-error.hidden {
    display: none;
}

/* Loading Button States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced File Upload */
.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-input {
    position: absolute;
    left: -9999px;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px dashed var(--gray-300);
    border-radius: 8px;
    background: var(--gray-50);
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.file-upload-input:focus + .file-upload-label {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Form Checkbox Enhancement */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-checkbox {
    margin-top: 2px;
    accent-color: var(--primary);
}

.checkbox-label {
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-700);
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--primary-dark);
}

/* Mobile Toast Responsiveness */
@media (max-width: 768px) {
    .toast-container {
        left: 20px;
        right: 20px;
        top: 20px;
        max-width: none;
    }
    
    .toast {
        margin-bottom: 8px;
        padding: 12px;
    }
    
    .toast span {
        font-size: 13px;
    }
}