/* assets/css/hrbypass-loader.css */

/* Simple Spinner */
.hrbypass-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(23, 162, 184, 0.2);
    border-top-color: #17a2b8;
    border-radius: 50%;
    animation: hrbypass-spin 0.8s linear infinite;
    margin: 0 auto;
}

/* Dual-ring spinner */
.hrbypass-loader-dual {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-top-color: #17a2b8;
    border-bottom-color: #17a2b8;
    border-radius: 50%;
    animation: hrbypass-spin 1s ease-in-out infinite;
}

/* Bouncing dots */
.hrbypass-loader-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hrbypass-loader-dots span {
    width: 10px;
    height: 10px;
    background-color: #17a2b8;
    border-radius: 50%;
    animation: hrbypass-bounce 1.4s infinite ease-in-out both;
}

.hrbypass-loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.hrbypass-loader-dots span:nth-child(2) { animation-delay: -0.16s; }

/* Pulse loader */
.hrbypass-loader-pulse {
    width: 40px;
    height: 40px;
    background-color: #17a2b8;
    border-radius: 50%;
    animation: hrbypass-pulse 1.2s ease-in-out infinite;
}

/* Progress bar loader */
.hrbypass-loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(23, 162, 184, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.hrbypass-loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: #17a2b8;
    border-radius: 4px;
    animation: hrbypass-progress 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes hrbypass-spin {
    to { transform: rotate(360deg); }
}

@keyframes hrbypass-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes hrbypass-pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

@keyframes hrbypass-progress {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* Loader container with text */
.hrbypass-loader-container {
    text-align: center;
    padding: 20px;
}

.hrbypass-loader-container .hrbypass-loader-text {
    margin-top: 10px;
    color: #6c757d;
    font-size: 14px;
}

/* Sizes */
.hrbypass-loader-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.hrbypass-loader-lg {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

/* Colors */
.hrbypass-loader-primary {
    border-top-color: #17a2b8;
}

.hrbypass-loader-success {
    border-top-color: #28a745;
}

.hrbypass-loader-warning {
    border-top-color: #ffc107;
}

.hrbypass-loader-danger {
    border-top-color: #dc3545;
}
/* Error icon styling */
.hrbypass-error-icon {
    display: inline-block;
    vertical-align: middle;
}

.hrbypass-error-icon.error-sm {
    width: 16px;
    height: 16px;
}

.hrbypass-error-icon.error-md {
    width: 24px;
    height: 24px;
}

.hrbypass-error-icon.error-lg {
    width: 48px;
    height: 48px;
}

/* Error message container */
.hrbypass-error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
    color: #721c24;
    margin: 10px 0;
}

.hrbypass-error-message .hrbypass-error-icon {
    flex-shrink: 0;
}

.hrbypass-error-message p {
    margin: 0;
    font-size: 14px;
}

/* Error field styling */
.hrbypass-field-error {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.hrbypass-field-error .hrbypass-error-icon {
    width: 14px;
    height: 14px;
}

/* Input error state */
.hrbypass-input-error {
    border-color: #dc3545 !important;
}

.hrbypass-input-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
}
/* Calendar icon base styles */
.hrbypass-calendar-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.hrbypass-calendar-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Size variants */
.hrbypass-calendar-icon-sm {
    width: 16px;
    height: 16px;
}

.hrbypass-calendar-icon-md {
    width: 24px;
    height: 24px;
}

.hrbypass-calendar-icon-lg {
    width: 32px;
    height: 32px;
}

.hrbypass-calendar-icon-xl {
    width: 48px;
    height: 48px;
}

/* Color variants */
.hrbypass-calendar-icon-primary {
    color: #17a2b8;
}

.hrbypass-calendar-icon-success {
    color: #28a745;
}

.hrbypass-calendar-icon-warning {
    color: #ffc107;
}

.hrbypass-calendar-icon-danger {
    color: #dc3545;
}

.hrbypass-calendar-icon-muted {
    color: #6c757d;
}

/* Animation */
.hrbypass-calendar-icon-pulse {
    animation: hrbypass-calendar-pulse 2s ease-in-out infinite;
}

@keyframes hrbypass-calendar-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
/* Clock icon base styles */
.hrbypass-clock-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.hrbypass-clock-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Size variants */
.hrbypass-clock-icon-sm {
    width: 16px;
    height: 16px;
}

.hrbypass-clock-icon-md {
    width: 24px;
    height: 24px;
}

.hrbypass-clock-icon-lg {
    width: 32px;
    height: 32px;
}

.hrbypass-clock-icon-xl {
    width: 48px;
    height: 48px;
}

/* Color variants */
.hrbypass-clock-icon-primary {
    color: #17a2b8;
}

.hrbypass-clock-icon-success {
    color: #28a745;
}

.hrbypass-clock-icon-warning {
    color: #ffc107;
}

.hrbypass-clock-icon-danger {
    color: #dc3545;
}

.hrbypass-clock-icon-muted {
    color: #6c757d;
}

/* Animations */
.hrbypass-clock-icon-spin {
    animation: hrbypass-clock-spin 2s linear infinite;
}

.hrbypass-clock-icon-pulse {
    animation: hrbypass-clock-pulse 1s ease-in-out infinite;
}

@keyframes hrbypass-clock-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes hrbypass-clock-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Time display with icon */
.hrbypass-time-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 14px;
    color: #495057;
}

.hrbypass-time-display .hrbypass-clock-icon {
    color: #17a2b8;
}
/* Location icon base styles */
.hrbypass-location-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.hrbypass-location-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Size variants */
.hrbypass-location-icon-sm {
    width: 16px;
    height: 16px;
}

.hrbypass-location-icon-md {
    width: 24px;
    height: 24px;
}

.hrbypass-location-icon-lg {
    width: 32px;
    height: 32px;
}

.hrbypass-location-icon-xl {
    width: 48px;
    height: 48px;
}

/* Color variants */
.hrbypass-location-icon-primary {
    color: #17a2b8;
}

.hrbypass-location-icon-success {
    color: #28a745;
}

.hrbypass-location-icon-warning {
    color: #ffc107;
}

.hrbypass-location-icon-danger {
    color: #dc3545;
}

.hrbypass-location-icon-muted {
    color: #6c757d;
}

/* Animations */
.hrbypass-location-icon-bounce {
    animation: hrbypass-location-bounce 1s ease-in-out infinite;
}

@keyframes hrbypass-location-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Location display with icon */
.hrbypass-location-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 14px;
    color: #495057;
}

.hrbypass-location-display .hrbypass-location-icon {
    color: #17a2b8;
}

/* Distance badge */
.hrbypass-distance-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #e1f5f9;
    border-radius: 12px;
    font-size: 12px;
    color: #0c5460;
}

.hrbypass-distance-badge .hrbypass-location-icon {
    width: 12px;
    height: 12px;
}
/* Loading spinner container */
.hrbypass-loading-spinner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #17a2b8;
}

.hrbypass-loading-spinner svg {
    display: block;
    width: auto;
    height: auto;
}

/* Loading text */
.hrbypass-loading-text {
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
}

/* Size variants */
.hrbypass-spinner-sm {
    width: 20px;
    height: 20px;
}

.hrbypass-spinner-md {
    width: 24px;
    height: 24px;
}

.hrbypass-spinner-lg {
    width: 32px;
    height: 32px;
}

.hrbypass-spinner-xl {
    width: 48px;
    height: 48px;
}

/* Color variants */
.hrbypass-spinner-primary {
    color: #17a2b8;
}

.hrbypass-spinner-success {
    color: #28a745;
}

.hrbypass-spinner-warning {
    color: #ffc107;
}

.hrbypass-spinner-danger {
    color: #dc3545;
}

.hrbypass-spinner-light {
    color: #f8f9fa;
}

.hrbypass-spinner-dark {
    color: #343a40;
}

/* Loading overlay */
.hrbypass-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.hrbypass-loading-overlay .hrbypass-loading-spinner {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Button loading state */
.hrbypass-btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.hrbypass-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hrbypass-spin 0.8s linear infinite;
}

@keyframes hrbypass-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hrbypass-loading-spinner svg * {
        animation: none !important;
    }
}
/* Verified badge base styles */
.hrbypass-verified-badge {
    display: inline-block;
    line-height: 0;
    vertical-align: middle;
}

.hrbypass-verified-badge svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Size variants */
.hrbypass-verified-badge-sm {
    width: 16px;
    height: 16px;
}

.hrbypass-verified-badge-md {
    width: 20px;
    height: 20px;
}

.hrbypass-verified-badge-lg {
    width: 24px;
    height: 24px;
}

.hrbypass-verified-badge-xl {
    width: 32px;
    height: 32px;
}

/* Position on avatar */
.hrbypass-provider-avatar {
    position: relative;
}

.hrbypass-provider-avatar .hrbypass-verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Inline with text */
.hrbypass-verified-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hrbypass-verified-inline .hrbypass-verified-badge {
    width: 14px;
    height: 14px;
}

.hrbypass-verified-inline span {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

/* Verified badge with tooltip */
.hrbypass-verified-badge[title] {
    cursor: help;
}

/* Pulse animation */
.hrbypass-verified-badge-pulse {
    animation: hrbypass-verified-pulse 2s ease-in-out infinite;
}

@keyframes hrbypass-verified-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Verified badge container */
.hrbypass-verified-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Default avatar using CSS */
.hrbypass-default-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e1f5f9 0%, #b3e5fc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hrbypass-default-avatar::before {
    content: '';
    width: 60%;
    height: 60%;
    background: #17a2b8;
    border-radius: 50%;
    position: absolute;
    top: 15%;
    left: 20%;
}

.hrbypass-default-avatar::after {
    content: '';
    width: 60%;
    height: 60%;
    background: #17a2b8;
    border-radius: 50%;
    position: absolute;
    top: 15%;
    right: 20%;
}

.hrbypass-default-avatar span {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}