/* ============================================
   FLOATING SHIPMENT NOTIFICATION BADGE
   (Top-right corner like notification bell)
   ============================================ */

.floating-shipment-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 9999;
    cursor: pointer;
    animation: floatNotification 0.5s ease-out;
}

@keyframes floatNotification {
    from {
        transform: translateX(100px) scale(0.5);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.notification-badge {
    position: relative;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid white;
    z-index: 2;
}

.notification-badge:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.6);
}

.notification-badge:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.notification-badge .badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    animation: countBounce 2s infinite;
}

@keyframes countBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.notification-badge i {
    font-size: 32px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Pulsing animation effect */
.notification-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

/* Tooltip styling for the notification */
.floating-shipment-notification + .tooltip .tooltip-inner {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    max-width: 300px;
    border: 2px solid white;
}

.floating-shipment-notification + .tooltip .tooltip-arrow::before {
    border-left-color: #4CAF50;
    border-width: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-shipment-notification {
        top: 80px;
        right: 20px;
    }
    
    .notification-badge {
        width: 60px;
        height: 60px;
    }
    
    .notification-badge i {
        font-size: 26px;
    }
    
    .notification-badge .badge-count {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .notification-pulse {
        width: 75px;
        height: 75px;
    }
}

@media (max-width: 576px) {
    .floating-shipment-notification {
        top: 70px;
        right: 15px;
    }
    
    .notification-badge {
        width: 55px;
        height: 55px;
    }
    
    .notification-badge i {
        font-size: 24px;
    }
    
    .notification-badge .badge-count {
        width: 26px;
        height: 26px;
        font-size: 13px;
        top: -6px;
        right: -6px;
    }
    
    .notification-pulse {
        width: 65px;
        height: 65px;
    }
}

/* For very large screens */
@media (min-width: 1200px) {
    .floating-shipment-notification {
        right: 50px;
    }
}

/* Animation for new notification */
.floating-shipment-notification.new-notification {
    animation: newNotification 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes newNotification {
    0% {
        transform: translateX(100px) rotate(180deg);
        opacity: 0;
    }
    60% {
        transform: translateX(-20px) rotate(-10deg);
    }
    80% {
        transform: translateX(10px) rotate(5deg);
    }
    100% {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }
}

/* ============================================
   SHIPMENT MODAL STYLES
   ============================================ */

.shipment-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    animation: modalAppear 0.3s ease-out;
}

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

.shipment-modal .modal-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.shipment-modal .modal-header .modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.shipment-modal .modal-header .btn-close {
    filter: invert(1) brightness(2);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.shipment-modal .modal-header .btn-close:hover {
    opacity: 1;
}

.shipment-modal .modal-body {
    padding: 3rem 2rem;
    text-align: center;
    background: white;
}

.shipment-icon-large {
    font-size: 5rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
    animation: iconFloat 3s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(76, 175, 80, 0.2);
}

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

.shipment-number-display {
    font-size: 4.5rem;
    font-weight: 800;
    color: #4CAF50;
    margin: 1.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: numberGlow 2s ease-in-out infinite alternate;
}

@keyframes numberGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(76, 175, 80, 0.3));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(76, 175, 80, 0.5));
    }
}

.foodtrader-logo {
    width: 140px;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.foodtrader-logo:hover {
    transform: scale(1.05);
}

.shipment-message {
    font-size: 1.1rem;
    color: #666;
    margin-top: 1.5rem;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

.shipment-message strong {
    color: #4CAF50;
    font-weight: 600;
}

.shipment-modal .badge {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(76, 175, 80, 0.2);
    background: rgba(76, 175, 80, 0.1) !important;
    transition: all 0.3s ease;
}

.shipment-modal .badge:hover {
    background: rgba(76, 175, 80, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.shipment-modal .badge i {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.shipment-modal .modal-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 20px 20px;
}

.shipment-modal .modal-footer .btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.shipment-modal .modal-footer .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.shipment-modal .modal-footer .btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* ============================================
   ANIMATED TRUCK ICON FOR SHIPMENT BADGE
   ============================================ */

/* Animated Truck Container */
.animated-truck {
    position: relative;
    width: 36px;
    height: 36px;
    animation: truckBounce 2s infinite ease-in-out;
}

/* Truck Body */
.truck-body {
    position: absolute;
    width: 28px;
    height: 14px;
    background: white;
    border-radius: 4px;
    top: 11px;
    left: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Truck Cabin */
.truck-cabin {
    position: absolute;
    width: 12px;
    height: 10px;
    background: white;
    border-radius: 3px;
    top: 7px;
    left: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Truck Window */
.truck-window {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #4CAF50;
    border-radius: 1px;
    top: 9px;
    left: 26px;
}

/* Truck Wheels - These will rotate! */
.truck-wheel {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    border: 2px solid #666;
    animation: wheelSpin 1s infinite linear;
}

.truck-wheel.front {
    top: 20px;
    left: 20px;
}

.truck-wheel.back {
    top: 20px;
    left: 8px;
}

/* Wheel hub */
.truck-wheel:before {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: #888;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Road Lines - Moving animation */
.road-lines {
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 4px;
    left: 0;
    overflow: hidden;
}

.road-line {
    position: absolute;
    width: 6px;
    height: 2px;
    background: white;
    animation: roadMove 0.8s infinite linear;
    opacity: 0.8;
}

.road-line:nth-child(1) {
    left: 8px;
    animation-delay: 0s;
}

.road-line:nth-child(2) {
    left: 20px;
    animation-delay: 0.2s;
}

.road-line:nth-child(3) {
    left: 32px;
    animation-delay: 0.4s;
}

.road-line:nth-child(4) {
    left: 44px;
    animation-delay: 0.6s;
}

/* Exhaust smoke animation */
.truck-exhaust {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    top: 12px;
    left: 0;
    animation: exhaust 1s infinite ease-out;
}

/* Animations */
@keyframes wheelSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes truckBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

@keyframes roadMove {
    0% {
        transform: translateX(-15px);
    }
    100% {
        transform: translateX(60px);
    }
}

@keyframes exhaust {
    0% {
        transform: translateX(0) translateY(0) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-8px) translateY(-4px) scale(1.2);
        opacity: 0;
    }
}

/* Responsive adjustments for animated truck */
@media (max-width: 768px) {
    .animated-truck {
        width: 32px;
        height: 32px;
    }
    
    .truck-body {
        width: 24px;
        height: 12px;
        top: 10px;
        left: 4px;
    }
    
    .truck-cabin {
        width: 10px;
        height: 8px;
        top: 6px;
        left: 20px;
    }
    
    .truck-wheel {
        width: 7px;
        height: 7px;
    }
    
    .truck-wheel.front {
        top: 18px;
        left: 18px;
    }
    
    .truck-wheel.back {
        top: 18px;
        left: 7px;
    }
    
    .road-line {
        width: 5px;
        height: 1.5px;
    }
}

@media (max-width: 576px) {
    .animated-truck {
        width: 28px;
        height: 28px;
    }
    
    .truck-body {
        width: 22px;
        height: 11px;
        top: 9px;
        left: 3px;
    }
    
    .truck-cabin {
        width: 9px;
        height: 7px;
        top: 5px;
        left: 18px;
    }
    
    .truck-wheel {
        width: 6px;
        height: 6px;
    }
    
    .truck-wheel.front {
        top: 16px;
        left: 16px;
    }
    
    .truck-wheel.back {
        top: 16px;
        left: 6px;
    }
    
    .road-line {
        width: 4px;
        height: 1px;
    }
}

/* ============================================
   ANIMATED TRUCK FOR MODAL
   ============================================ */

.animated-truck-modal {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    animation: truckBounce 2s infinite ease-in-out;
}

.animated-truck-modal .truck-body {
    position: absolute;
    width: 64px;
    height: 32px;
    background: #4CAF50;
    border-radius: 8px;
    top: 24px;
    left: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.animated-truck-modal .truck-cabin {
    position: absolute;
    width: 28px;
    height: 24px;
    background: #4CAF50;
    border-radius: 6px;
    top: 16px;
    left: 56px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.animated-truck-modal .truck-window {
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 3px;
    top: 20px;
    left: 60px;
}

.animated-truck-modal .truck-wheel {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    border: 4px solid #666;
    animation: wheelSpin 1s infinite linear;
}

.animated-truck-modal .truck-wheel.front {
    top: 44px;
    left: 44px;
}

.animated-truck-modal .truck-wheel.back {
    top: 44px;
    left: 16px;
}

.animated-truck-modal .truck-wheel:before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #888;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.animated-truck-modal .road-lines {
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: 10px;
    left: 0;
    overflow: hidden;
}

.animated-truck-modal .road-line {
    position: absolute;
    width: 16px;
    height: 4px;
    background: #4CAF50;
    animation: roadMove 0.8s infinite linear;
    opacity: 0.8;
}

.animated-truck-modal .road-line:nth-child(1) {
    left: 20px;
    animation-delay: 0s;
}

.animated-truck-modal .road-line:nth-child(2) {
    left: 50px;
    animation-delay: 0.2s;
}

.animated-truck-modal .road-line:nth-child(3) {
    left: 80px;
    animation-delay: 0.4s;
}

.animated-truck-modal .road-line:nth-child(4) {
    left: 110px;
    animation-delay: 0.6s;
}

.animated-truck-modal .truck-exhaust {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(76, 175, 80, 0.7);
    border-radius: 50%;
    top: 28px;
    left: 0;
    animation: exhaust 1s infinite ease-out;
}

/* Replace the icon in modal with animated truck */
.shipment-icon-large {
    font-size: 0; /* Hide the icon text */
}

.shipment-icon-large .animated-truck-modal {
    display: block;
}

/* Company Logo Styles */
.upm-isolation-wrapper .user-profile-container .company-logo-container {
    z-index: 20 !important;
}

.upm-isolation-wrapper .user-profile-container .company-logo {
    transition: transform 0.3s ease !important;
    width: 80px !important;
    height: auto !important;
    max-width: 100% !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 4px !important;
}

.upm-isolation-wrapper .user-profile-container .company-logo:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Adjust banner upload overlay position to avoid logo overlap */
.upm-isolation-wrapper .user-profile-container .banner-upload-overlay {
    margin-top: 100px !important;
}

/* UPM Specific Styles - High specificity to override Elementor */
.upm-isolation-wrapper {
    /* Reset any Elementor inheritance */
    all: initial;
}

.upm-isolation-wrapper .user-profile-container {
    /* Restore normal styles */
    all: unset;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    line-height: 1.5 !important;
    color: #212529 !important;
}

.upm-isolation-wrapper .user-profile-container .container {
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
}

.upm-isolation-wrapper .user-profile-container .container-fluid {
    width: 100% !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.upm-isolation-wrapper .user-profile-container .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -12px !important;
    margin-left: -12px !important;
}

.upm-isolation-wrapper .user-profile-container .col-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
}

.upm-isolation-wrapper .user-profile-container .col-md-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
}

.upm-isolation-wrapper .user-profile-container .col-md-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
}

.upm-isolation-wrapper .user-profile-container .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

.upm-isolation-wrapper .user-profile-container .col-md-2 {
    flex: 0 0 16.666667% !important;
    max-width: 16.666667% !important;
}

.upm-isolation-wrapper .user-profile-container .col-md-1 {
    flex: 0 0 8.333333% !important;
    max-width: 8.333333% !important;
}

/* Bootstrap component overrides */
.upm-isolation-wrapper .user-profile-container .btn {
    display: inline-block !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-decoration: none !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    border-radius: 0.375rem !important;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.upm-isolation-wrapper .user-profile-container .btn-primary {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.upm-isolation-wrapper .user-profile-container .btn-outline-primary {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.upm-isolation-wrapper .user-profile-container .btn-outline-primary:hover {
    color: #fff !important;
    background-color: #0d6efd !important;
}

.upm-isolation-wrapper .user-profile-container .btn-danger {
    color: #fff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.upm-isolation-wrapper .user-profile-container .btn-light {
    color: #fff !important;
    background-color: #185915 !important;
    border-color: #f8f9fa !important;
}

.upm-isolation-wrapper .user-profile-container .btn-outline-light {
    color: #ffffff !important;
    border-color: #ffffff !important;
    background: #185915;
}

.upm-isolation-wrapper .user-profile-container .btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.25rem !important;
}

.upm-isolation-wrapper .user-profile-container .btn-lg {
    padding: 0.5rem 1rem !important;
    font-size: 1.25rem !important;
    border-radius: 0.5rem !important;
}

.upm-isolation-wrapper .user-profile-container .form-control {
    display: block !important;
    width: 100% !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.upm-isolation-wrapper .user-profile-container .form-control-lg {
    padding: 0.5rem 1rem !important;
    font-size: 1.25rem !important;
    border-radius: 0.5rem !important;
}

.upm-isolation-wrapper .user-profile-container .form-control-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.25rem !important;
}

.upm-isolation-wrapper .user-profile-container .form-label {
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
}

.upm-isolation-wrapper .user-profile-container .card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    word-wrap: break-word !important;
    background-color: #fff !important;
    background-clip: border-box !important;
    border: 1px solid rgba(0, 0, 0, 0.125) !important;
    border-radius: 0.375rem !important;
}

.upm-isolation-wrapper .user-profile-container .card-body {
    flex: 1 1 auto !important;
    padding: 1rem 1rem !important;
}

.upm-isolation-wrapper .user-profile-container .card-header {
    padding: 0.5rem 1rem !important;
    margin-bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.03) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125) !important;
}

.upm-isolation-wrapper .user-profile-container .bg-light {
    background-color: #f8f9fa !important;
}

.upm-isolation-wrapper .user-profile-container .bg-transparent {
    background-color: transparent !important;
}

.upm-isolation-wrapper .user-profile-container .border-0 {
    border: 0 !important;
}

.upm-isolation-wrapper .user-profile-container .border-top {
    border-top: 1px solid #dee2e6 !important;
}

.upm-isolation-wrapper .user-profile-container .border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.upm-isolation-wrapper .user-profile-container .border-white {
    border-color: #fff !important;
}

.upm-isolation-wrapper .user-profile-container .border-4 {
    border-width: 4px !important;
}

.upm-isolation-wrapper .user-profile-container .rounded-circle {
    border-radius: 50% !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.upm-isolation-wrapper .user-profile-container .rounded-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}


.upm-isolation-wrapper .user-profile-container .shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Ensure proper spacing */
.upm-isolation-wrapper .user-profile-container .mb-5 {
    margin-bottom: 3rem !important;
}

.upm-isolation-wrapper .user-profile-container .mt-3 {
    margin-top: 1rem !important;
}

.upm-isolation-wrapper .user-profile-container .mt-4 {
    margin-top: 1.5rem !important;
}

.upm-isolation-wrapper .user-profile-container .mt-5 {
    margin-top: 3rem !important;
}

.upm-isolation-wrapper .user-profile-container .mb-3 {
    margin-bottom: 1rem !important;
}

.upm-isolation-wrapper .user-profile-container .mb-2 {
    margin-bottom: 0.5rem !important;
}

.upm-isolation-wrapper .user-profile-container .mb-0 {
    margin-bottom: 0 !important;
}

.upm-isolation-wrapper .user-profile-container .me-2 {
    margin-right: 0.5rem !important;
}

.upm-isolation-wrapper .user-profile-container .me-1 {
    margin-right: 0.25rem !important;
}

.upm-isolation-wrapper .user-profile-container .ms-1 {
    margin-left: 0.25rem !important;
}

.upm-isolation-wrapper .user-profile-container .pt-4 {
    padding-top: 1.5rem !important;
}

.upm-isolation-wrapper .user-profile-container .px-5 {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

.upm-isolation-wrapper .user-profile-container .px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.upm-isolation-wrapper .user-profile-container .py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.upm-isolation-wrapper .user-profile-container .g-4 {
    gap: 0rem !important;
}

.upm-isolation-wrapper .user-profile-container .g-3 {
    gap: 1rem !important;
}

.upm-isolation-wrapper .user-profile-container .g-2 {
    gap: 0.5rem !important;
}

/* Text styles */
.upm-isolation-wrapper .user-profile-container .text-muted {
    color: #6c757d !important;
}

.upm-isolation-wrapper .user-profile-container .text-dark {
    color: #212529 !important;
}

.upm-isolation-wrapper .user-profile-container .text-primary {
    color: #036923 !important;
}

.upm-isolation-wrapper .user-profile-container .text-center {
    text-align: center !important;
}

.upm-isolation-wrapper .user-profile-container .text-end {
    text-align: right !important;
}

.upm-isolation-wrapper .user-profile-container .fw-semibold {
    font-weight: 600 !important;
}

.upm-isolation-wrapper .user-profile-container .fw-bold {
    font-weight: 700 !important;
}

.upm-isolation-wrapper .user-profile-container .small {
    font-size: 0.875rem !important;
}

.upm-isolation-wrapper .user-profile-container .lead {
    font-size: 1.25rem !important;
    font-weight: 300 !important;
}

.upm-isolation-wrapper .user-profile-container .h1, 
.upm-isolation-wrapper .user-profile-container .h2, 
.upm-isolation-wrapper .user-profile-container .h3, 
.upm-isolation-wrapper .user-profile-container .h4, 
.upm-isolation-wrapper .user-profile-container .h5, 
.upm-isolation-wrapper .user-profile-container .h6 {
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.upm-isolation-wrapper .user-profile-container .h1 { font-size: 2.5rem !important; }
.upm-isolation-wrapper .user-profile-container .h2 { font-size: 2rem !important; }
.upm-isolation-wrapper .user-profile-container .h3 { font-size: 1.75rem !important; }
.upm-isolation-wrapper .user-profile-container .h4 { font-size: 1.5rem !important; }
.upm-isolation-wrapper .user-profile-container .h5 { font-size: 1.25rem !important; }
.upm-isolation-wrapper .user-profile-container .h6 { font-size: 1rem !important; }

/* Position utilities */
.upm-isolation-wrapper .user-profile-container .position-relative {
    position: relative !important;
}

.upm-isolation-wrapper .user-profile-container .position-absolute {
    position: absolute !important;
}

.upm-isolation-wrapper .user-profile-container .top-0 {
    top: 0 !important;
}

.upm-isolation-wrapper .user-profile-container .bottom-0 {
    bottom: 0 !important;
}

.upm-isolation-wrapper .user-profile-container .start-0 {
    left: 0 !important;
}

.upm-isolation-wrapper .user-profile-container .end-0 {
    right: 0 !important;
}

.upm-isolation-wrapper .user-profile-container .m-3 {
    margin: 1rem !important;
}

/* Display utilities */
.upm-isolation-wrapper .user-profile-container .d-none {
    display: none !important;
}

.upm-isolation-wrapper .user-profile-container .d-inline-block {
    display: inline-block !important;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 100% !important;
}

.upm-isolation-wrapper .user-profile-container .d-inline-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}


.upm-isolation-wrapper .user-profile-container .d-flex {
    display: flex !important;
}

.upm-isolation-wrapper .user-profile-container .justify-content-between {
    justify-content: space-between !important;
}

.upm-isolation-wrapper .user-profile-container .justify-content-center {
    justify-content: center !important;
}

.upm-isolation-wrapper .user-profile-container .align-items-center {
    align-items: center !important;
}

.upm-isolation-wrapper .user-profile-container .w-100 {
    width: 100% !important;
}

.upm-isolation-wrapper .user-profile-container .h-100 {
    height: 100% !important;
}

/* Table styles */
.upm-isolation-wrapper .user-profile-container .table {
    width: 100% !important;
    margin-bottom: 1rem !important;
    color: #212529 !important;
    border-collapse: collapse !important;
}

.upm-isolation-wrapper .user-profile-container .table-bordered {
    border: 1px solid #dee2e6 !important;
}

.upm-isolation-wrapper .user-profile-container .table-bordered th,
.upm-isolation-wrapper .user-profile-container .table-bordered td {
    border: 1px solid #dee2e6 !important;
}

.upm-isolation-wrapper .user-profile-container .table-hover tbody tr:hover {
    color: #212529 !important;
    background-color: rgba(0, 0, 0, 0.075) !important;
}

.upm-isolation-wrapper .user-profile-container .table-light {
    background-color: #f8f9fa !important;
}

.upm-isolation-wrapper .user-profile-container .table-responsive {
    overflow-x: auto !important;
}

/* Alert styles */
.upm-isolation-wrapper .user-profile-container .alert {
    position: relative !important;
    padding: 1rem 1rem !important;
    margin-bottom: 1rem !important;
    border: 1px solid transparent !important;
    border-radius: 0.375rem !important;
}

.upm-isolation-wrapper .user-profile-container .alert-success {
    color: #0f5132 !important;
    background-color: #d1e7dd !important;
    border-color: #badbcc !important;
}

.upm-isolation-wrapper .user-profile-container .alert-danger {
    color: #842029 !important;
    background-color: #f8d7da !important;
    border-color: #f5c2c7 !important;
}

.upm-isolation-wrapper .user-profile-container .alert-warning {
    color: #664d03 !important;
    background-color: #fff3cd !important;
    border-color: #ffecb5 !important;
}

/* Text decoration */
.upm-isolation-wrapper .user-profile-container .text-decoration-none {
    text-decoration: none !important;
}

/* Button group */
.upm-isolation-wrapper .user-profile-container .btn-group {
    position: relative !important;
    display: inline-flex !important;
    vertical-align: middle !important;
}

.upm-isolation-wrapper .user-profile-container .btn-group .btn {
    position: relative !important;
    flex: 1 1 auto !important;
}

.upm-isolation-wrapper .user-profile-container .btn-group .btn:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.upm-isolation-wrapper .user-profile-container .btn-group .btn:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Form group */
.upm-isolation-wrapper .user-profile-container .form-group {
    margin-bottom: 1rem !important;
}

/* Close button */
.upm-isolation-wrapper .user-profile-container .btn-close {
    box-sizing: content-box !important;
    width: 1em !important;
    height: 1em !important;
    padding: 0.25em 0.25em !important;
    color: #000 !important;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
    border: 0 !important;
    border-radius: 0.375rem !important;
    opacity: 0.5 !important;
    cursor: pointer !important;
}

.upm-isolation-wrapper .user-profile-container .btn-close:hover {
    opacity: 0.75 !important;
}

/* Collapse animation */
.upm-isolation-wrapper .user-profile-container .collapse:not(.show) {
    display: none !important;
}

.upm-isolation-wrapper .user-profile-container .collapsing {
    height: 0 !important;
    overflow: hidden !important;
    transition: height 0.35s ease !important;
}