/* Inline filter box harmonized borders and Select2 alignment */
#users-inline-filter .form-control.form-control-solid {
    border: 1px solid var(--bs-border-color) !important;
}
#users-inline-filter .form-select.form-select-solid {
    border: 1px solid var(--bs-border-color) !important;
}
#users-inline-filter .input-group .input-group-text {
    border: 1px solid var(--bs-border-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#users-inline-filter .input-group .input-group-text i {
    display: inline-block !important;
    font-size: 1rem !important;
}
#users-inline-filter .input-group .form-control,
#users-inline-filter .input-group .form-select {
    border-left: 0 !important;
}
#users-inline-filter .select2-container {
    width: 100% !important;
}
#users-inline-filter .select2-container .select2-selection {
    height: calc(1.5em + 1.65rem + 2px) !important;
    border: 1px solid var(--bs-border-color) !important;
    display: flex !important;
    align-items: center !important;
}
#users-inline-filter .select2-container .select2-selection__rendered {
    line-height: 1.5 !important;
    padding: .375rem .75rem !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}
#users-inline-filter .select2-container .select2-selection__arrow {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}
/* Social Likers Styling */
.liker-item {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.liker-avatar {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 50%;
    overflow: hidden;
}

.liker-avatar::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 3px solid #f1416c;
    border-radius: 50%;
    animation: liker-pulse 2s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes liker-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(241, 65, 108, 0.7);
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
        box-shadow: 0 0 0 5px rgba(241, 65, 108, 0.3);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(241, 65, 108, 0);
    }
}

.liker-avatar:hover::after {
    animation-duration: 0.8s;
    border-color: #d63384;
}

.liker-item:hover .liker-avatar {
    transform: scale(1.1);
}

/* Tooltip styling for likers */
.liker-item[data-bs-toggle="tooltip"] {
    cursor: pointer;
}

/* Online Status Indicators */
.user-avatar-container {
    position: relative;
    display: inline-block;
}

.user-avatar-container .symbol {
    position: relative;
}

.online-status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 10;
}

/* Online (15 minutes) - Green with pulse */
.online-status-online {
    background-color: #00ff00;
    box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

/* Recently Online (15 min - 8 hours) - Blue */
.online-status-recent {
    background-color: #007bff;
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    animation: pulse-blue 3s infinite;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Away (8 hours - 3 days) - Orange */
.online-status-away {
    background-color: #ff8c00;
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
    animation: pulse-orange 4s infinite;
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 140, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
    }
}

/* Offline (3+ days) - Red */
.online-status-offline {
    background-color: #dc3545;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    animation: pulse-red 5s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Hover effects */
.user-avatar-container:hover .online-status-indicator {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* Copyable Elements */
.copyable {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.copyable:hover {
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    padding: 2px 4px;
    margin: -2px -4px;
}

/* Copy icon removed per user request */

/* Copy processing state */
.copy-processing {
    pointer-events: none;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Filter processing state */
.filter-processing {
    pointer-events: none;
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.filter-processing::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Copy success animation */
.copy-success {
    animation: copySuccess 0.6s ease;
}

@keyframes copySuccess {
    0% {
        background-color: rgba(40, 167, 69, 0.2);
        transform: scale(1);
    }
    50% {
        background-color: rgba(40, 167, 69, 0.4);
        transform: scale(1.05);
    }
    100% {
        background-color: rgba(40, 167, 69, 0.2);
        transform: scale(1);
    }
}

/* Copy tooltip */
.copy-tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.copy-tooltip.show {
    opacity: 1;
}

/* Button processing state */
.processing {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.processing::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* WebSocket connection status */
.websocket-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.websocket-status.connected {
    background-color: #28a745;
}

.websocket-status.disconnected {
    background-color: #dc3545;
}

.websocket-status.connecting {
    background-color: #ffc107;
    color: #333;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    z-index: 10000;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

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

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

.notification.warning {
    background-color: #ffc107;
    color: #333;
}

.notification.info {
    background-color: #17a2b8;
}

/* Online Status Legend */
.online-status-legend {
    margin: 20px 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.online-status-legend h6 {
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.legend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.legend-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    position: relative;
    flex-shrink: 0;
}

.legend-text {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

/* Legend indicator animations */
.legend-item .online-status-online {
    background-color: #00ff00;
    box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    animation: pulse-green 2s infinite;
}

.legend-item .online-status-recent {
    background-color: #007bff;
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    animation: pulse-blue 3s infinite;
}

.legend-item .online-status-away {
    background-color: #ff8c00;
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
    animation: pulse-orange 4s infinite;
}

.legend-item .online-status-offline {
    background-color: #dc3545;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    animation: pulse-red 5s infinite;
}


/* Large Modal Styles */
.large-modal {
    max-width: 800px !important;
    width: 90% !important;
    max-height: 90vh !important;
}

@media (max-width: 768px) {
    .large-modal {
        width: 95% !important;
        max-width: 95% !important;
    }
}

.large-modal-content {
    max-height: calc(90vh - 100px) !important;
    overflow-y: auto !important;
}

.large-modal-content .card {
    margin-bottom: 0 !important;
}

.large-modal-content .form-control,
.large-modal-content .form-select,
.large-modal-content textarea {
    max-width: 100% !important;
}

/* Users Filter Styles */
.users-filter-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.users-filter-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.users-filter-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}

.users-filter-body {
    padding: 25px;
}

.users-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.users-filter-col {
    flex: 1;
    min-width: 250px;
}

.users-filter-group {
    margin-bottom: 20px;
}

.users-filter-group:last-child {
    margin-bottom: 0;
}

.users-filter-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.users-filter-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.users-filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.users-filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    cursor: pointer;
}

.users-filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.users-filter-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    resize: vertical;
    min-height: 80px;
}

.users-filter-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.users-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

.users-filter-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.users-filter-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.users-filter-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.users-filter-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.users-filter-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

.users-filter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Select2 WebSocket Loading */
.select2-loading {
    position: relative;
}

.select2-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 30px;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 0;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* Filter Form Animations */
.users-filter-form {
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Results Count */
.users-filter-results {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #1976d2;
    font-weight: 500;
}

/* Dark Mode Support */
[data-bs-theme="dark"] .users-filter-container {
    background: #2d3748;
    border-color: #4a5568;
}

[data-bs-theme="dark"] .users-filter-input,
[data-bs-theme="dark"] .users-filter-select,
[data-bs-theme="dark"] .users-filter-textarea {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .users-filter-input:focus,
[data-bs-theme="dark"] .users-filter-select:focus,
[data-bs-theme="dark"] .users-filter-textarea:focus {
    border-color: #667eea;
    background: #4a5568;
}

[data-bs-theme="dark"] .users-filter-label {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .users-filter-btn-secondary {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

[data-bs-theme="dark"] .users-filter-btn-secondary:hover {
    background: #718096;
    color: #f7fafc;
}

[data-bs-theme="dark"] .users-filter-results {
    background: #2d3748;
    border-color: #4a5568;
    color: #90cdf4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .online-status-indicator {
        width: 10px;
        height: 10px;
        bottom: 1px;
        right: 1px;
    }
    
    .copyable::after {
        right: -15px;
        font-size: 10px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .online-status-legend {
        margin: 15px 10px;
        padding: 15px;
    }
    
    .legend-item {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .legend-indicator {
        width: 14px;
        height: 14px;
    }
    
    .users-filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .users-filter-col {
        min-width: 100%;
    }
    
    .users-filter-body {
        padding: 20px;
    }
    
    .users-filter-actions {
        flex-direction: column;
    }
    
    .users-filter-btn {
        width: 100%;
    }
}

.ribbon-triangle.ribbon-top-start {
    border-top-right-radius: 0.625rem;
}

.ribbon-triangle .ribbon-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.ribbon-icon{
    margin-right: -24px;
}

/* Loading Bar Styles */
#loading-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    overflow: hidden;
}

#loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    background-size: 200% 100%;
    animation: gradientShift 1.5s ease infinite;
    transition: width 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

#loading-bar.indeterminate {
    width: 30%;
    animation: indeterminateAnimation 1.5s infinite ease-out, gradientShift 1.5s ease infinite;
}

@keyframes indeterminateAnimation {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(400%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Loading Overlay Styles */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#loading-overlay.show {
    opacity: 1;
}

.loading-overlay-content {
    text-align: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    max-width: 400px;
}

#loading-overlay.show .loading-overlay-content {
    transform: scale(1);
}

.loading-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.loading-logo {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: logoFloat 3s ease-in-out infinite;
}

.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid transparent;
    border-top-color: #3b82f6;
    border-right-color: #8b5cf6;
    border-radius: 50%;
    animation: spinnerRotate 1.5s linear infinite;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid transparent;
    border-top-color: #ec4899;
    border-radius: 50%;
    animation: spinnerRotate 2s linear infinite reverse;
}

.loading-text {
    margin-bottom: 25px;
}

.loading-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    animation: textPulse 2s ease-in-out infinite;
}

.loading-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes spinnerRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Repair Success Button Effect */
.repair-success-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.repair-success-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.repair-success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.repair-success-btn:hover::before {
    width: 300px;
    height: 300px;
}

.repair-success-btn:active {
    transform: scale(0.95);
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Repair Fail Button Effect */
.repair-fail-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.repair-fail-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.repair-fail-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.5);
    animation: shakeSad 0.5s ease;
}

.repair-fail-btn:hover::before {
    width: 300px;
    height: 300px;
}

.repair-fail-btn:active {
    transform: scale(0.9);
    animation: failShake 0.6s ease;
}

@keyframes shakeSad {
    0%, 100% { transform: translateX(0) translateY(-2px); }
    25% { transform: translateX(-5px) translateY(-2px); }
    75% { transform: translateX(5px) translateY(-2px); }
}

@keyframes failShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Modal Header Animations */
.bg-light-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.2) 100%);
    animation: successGlow 3s ease infinite;
}

.bg-light-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.2) 100%);
    animation: dangerGlow 3s ease infinite;
}

@keyframes successGlow {
    0%, 100% {
        background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.2) 100%);
    }
    50% {
        background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(40, 167, 69, 0.3) 100%);
    }
}

@keyframes dangerGlow {
    0%, 100% {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.2) 100%);
    }
    50% {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(220, 53, 69, 0.3) 100%);
    }
}
body:not([data-kt-app-header-sticky="on"]) .app-header .app-header-wrapper{
    margin-top: 15px;
}