/**
 * UX Improvements Master CSS
 * Combines all UX improvements from Wingman audit
 * Target: Improve scores from 74.1/100 to 85+/100
 */

/* Import individual improvement files */
@import url('accessibility.css');
@import url('contrast-improvements.css');
@import url('mobile-improvements.css');
@import url('conversion-optimization.css');

/* Additional Global UX Improvements */

/* Loading states for better perceived performance */
.loading {
 position: relative;
 pointer-events: none;
 opacity: 0.6;
}

.loading::after {
 content: '';
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 width: 20px;
 height: 20px;
 border: 2px solid #f3f3f3;
 border-top: 2px solid #0F75BD;
 border-radius: 50%;
 animation: spin 1s linear infinite;
}

@keyframes spin {
 0% { transform: translate(-50%, -50%) rotate(0deg); }
 100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Skeleton screens for content loading */
.skeleton {
 background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
 background-size: 200% 100%;
 animation: loading 1.5s infinite;
}

@keyframes loading {
 0% { background-position: 200% 0; }
 100% { background-position: -200% 0; }
}

/* Error states */
.error-message {
 background-color: #f8d7da;
 border: 1px solid #f5c6cb;
 color: #721c24;
 padding: 1rem;
 border-radius: 0.25rem;
 margin: 1rem 0;
}

.error-message i {
 margin-right: 0.5rem;
}

/* Success states */
.success-message {
 background-color: #d4edda;
 border: 1px solid #c3e6cb;
 color: #155724;
 padding: 1rem;
 border-radius: 0.25rem;
 margin: 1rem 0;
}

.success-message i {
 margin-right: 0.5rem;
}

/* Improve form usability */
.form-group {
 margin-bottom: 1.5rem;
}

.form-label {
 font-weight: 600;
 margin-bottom: 0.5rem;
 color: #495057;
}

.form-text {
 font-size: 0.875rem;
 color: #6c757d;
 margin-top: 0.25rem;
}

/* Required field indicators */
.form-label.required::after {
 content: ' *';
 color: #dc3545;
}

/* Input group improvements */
.input-group-text {
 background-color: #f8f9fa;
 border-color: #ced4da;
}

/* Tooltip improvements */
.tooltip {
 font-size: 0.875rem;
}

.tooltip-inner {
 max-width: 300px;
 padding: 0.5rem 0.75rem;
}

/* Card improvements */
.card {
 transition: box-shadow 0.3s ease;
}

.card:hover {
 box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Image optimization */
img {
 max-width: 100%;
 height: auto;
}

/* Lazy loading placeholder */
img[data-src] {
 background: #f0f0f0;
 min-height: 100px;
}

/* Print styles */
@media print {
 .no-print,
 nav,
 footer,
 .btn,
 .form-control {
 display: none !important;
 }
 
 body {
 font-size: 12pt;
 line-height: 1.5;
 }
 
 a {
 text-decoration: none;
 color: #000;
 }
 
 a[href]::after {
 content: " (" attr(href) ")";
 }
}