/* Enhanced Dashboard Cards Styles */
.myJob-wrapper-single-balance {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    height: 100%;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.myJob-wrapper-single-balance::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.myJob-wrapper-single-balance:hover::before {
    left: 100%;
}

.myJob-wrapper-single-balance:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.1);
}

.myJob-wrapper-single-balance a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.myJob-wrapper-single-balance-contents {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    justify-content: space-between;
}

.myJob-wrapper-single-balance-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.contract_single__balance-price {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.myJob-wrapper-single-balance:hover .contract_single__balance-price {
    transform: scale(1.05);
}

.myJob-wrapper-single-balance-para {
    font-size: 15px;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 0;
    color: #64748b;
    transition: color 0.3s ease;
}

.myJob-wrapper-single-balance:hover .myJob-wrapper-single-balance-para {
    color: #334155;
}

/* Icon Styling */
.myJob-wrapper-single-balance svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.myJob-wrapper-single-balance:hover svg {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Specific Card Colors with Gradients */
.myJob-wrapper-single-balance.total_balance {
    background: linear-gradient(135deg, #e3e1ff 0%, #d4d1ff 100%);
    border-color: #c4b5fd;
}

.myJob-wrapper-single-balance.total_balance .contract_single__balance-price {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Profile Views Card */
.myJob-wrapper-single-balance[style*="background-color: #fff3cd"] {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    border-color: #fdcb6e;
}

.myJob-wrapper-single-balance[style*="background-color: #fff3cd"] .contract_single__balance-price {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skills Card */
.myJob-wrapper-single-balance[style*="background-color: #e7f5ff"] {
    background: linear-gradient(135deg, #e7f5ff 0%, #d0ebff 100%) !important;
    border-color: #74c0fc;
}

.myJob-wrapper-single-balance[style*="background-color: #e7f5ff"] .contract_single__balance-price {
    background: linear-gradient(135deg, #1c7ed6 0%, #339af0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Portfolio Card */
.myJob-wrapper-single-balance[style*="background-color: #f0f9ff"] {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border-color: #7dd3fc;
}

.myJob-wrapper-single-balance[style*="background-color: #f0f9ff"] .contract_single__balance-price {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Login Card */
.myJob-wrapper-single-balance[style*="background-color: #fef3c7"] {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border-color: #fcd34d;
}

.myJob-wrapper-single-balance[style*="background-color: #fef3c7"] .contract_single__balance-price {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Default Cards (Projects, Orders) */
.myJob-wrapper-single-balance:not(.total_balance):not([style*="background-color"]) {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #e2e8f0;
}

.myJob-wrapper-single-balance:not(.total_balance):not([style*="background-color"]) .contract_single__balance-price {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Small text styling */
.myJob-wrapper-single-balance small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.myJob-wrapper-single-balance:hover small {
    opacity: 1;
}

/* Equal spacing and sizing */
.single-profile-settings-inner .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

/* Profit Chart Filters Styling */
.profit-chart-filters .row {
    align-items: flex-end;
}

.profit-chart-filters .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 8px;
    display: block;
    height: 20px;
    line-height: 20px;
}

.profit-chart-filters .form-control {
    height: 38px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.profit-chart-filters .form-control:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    outline: none;
}

.profit-chart-actions {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.profit-chart-actions .form-label {
    display: none;
}

.profit-chart-actions small {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
    height: 20px;
    line-height: 20px;
}

.profit-chart-actions .btn {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
    padding: 6px 12px;
}

.profit-chart-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

.single-profile-settings-inner .row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

/* Ensure all cards have equal height */
.single-profile-settings-inner .row > [class*="col-"] > a,
.single-profile-settings-inner .row > [class*="col-"] > div {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.single-profile-settings-inner .row > [class*="col-"] > a > .myJob-wrapper-single-balance,
.single-profile-settings-inner .row > [class*="col-"] > div > .myJob-wrapper-single-balance {
    height: 100%;
    flex: 1;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .contract_single__balance-price {
        font-size: 24px;
    }
    
    .myJob-wrapper-single-balance {
        min-height: 130px;
    }
    
    .myJob-wrapper-single-balance-contents {
        padding: 18px;
    }
}

@media (max-width: 991.98px) {
    .contract_single__balance-price {
        font-size: 22px;
    }
    
    .myJob-wrapper-single-balance {
        min-height: 120px;
    }
    
    .myJob-wrapper-single-balance-contents {
        padding: 16px;
    }
    
    .single-profile-settings-inner .row > [class*="col-"] {
        margin-bottom: 20px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .single-profile-settings-inner .row {
        margin-left: -10px;
        margin-right: -10px;
    }
}

@media (max-width: 767.98px) {
    .contract_single__balance-price {
        font-size: 20px;
    }
    
    .myJob-wrapper-single-balance {
        min-height: 110px;
    }
    
    .myJob-wrapper-single-balance-para {
        font-size: 14px;
    }
    
    .myJob-wrapper-single-balance svg {
        width: 20px;
        height: 20px;
    }
    
    .myJob-wrapper-single-balance-contents {
        padding: 14px;
    }
    
    .single-profile-settings-inner .row > [class*="col-"] {
        margin-bottom: 15px;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .single-profile-settings-inner .row {
        margin-left: -8px;
        margin-right: -8px;
    }
}

/* Animation for card entrance */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.myJob-wrapper-single-balance {
    animation: cardFadeIn 0.5s ease-out;
}

/* Stagger animation for multiple cards */
.col-xxl-3:nth-child(1) .myJob-wrapper-single-balance {
    animation-delay: 0.1s;
}

.col-xxl-3:nth-child(2) .myJob-wrapper-single-balance {
    animation-delay: 0.2s;
}

.col-xxl-3:nth-child(3) .myJob-wrapper-single-balance {
    animation-delay: 0.3s;
}

.col-xxl-3:nth-child(4) .myJob-wrapper-single-balance {
    animation-delay: 0.4s;
}

.col-xxl-3:nth-child(5) .myJob-wrapper-single-balance {
    animation-delay: 0.5s;
}

.col-xxl-3:nth-child(6) .myJob-wrapper-single-balance {
    animation-delay: 0.6s;
}

.col-xxl-3:nth-child(7) .myJob-wrapper-single-balance {
    animation-delay: 0.7s;
}

.col-xxl-3:nth-child(8) .myJob-wrapper-single-balance {
    animation-delay: 0.8s;
}

/* Pulse animation for important cards */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.myJob-wrapper-single-balance.total_balance:hover {
    animation: pulse 2s ease-in-out infinite;
}

/* Improved focus states for accessibility */
.myJob-wrapper-single-balance a:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 10px;
}

