/* Freelancer Dashboard - Red Branding Enhancement */

/* Dashboard Cards with Red Branding */
.myJob-wrapper-single-balance {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(220, 38, 38, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    border-left: 5px solid #dc2626;
    background: #fff;
}

.myJob-wrapper-single-balance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

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

.myJob-wrapper-single-balance::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.6s ease;
    z-index: 1;
}

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

.myJob-wrapper-single-balance:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.4);
    border-left-width: 6px;
}

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

.contract_single__balance-price {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 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.08);
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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: #dc2626;
    font-weight: 600;
}

/* Icon Styling with Red Branding */
.myJob-wrapper-single-balance svg {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.2));
}

.myJob-wrapper-single-balance:hover svg {
    transform: scale(1.2) rotate(8deg);
    filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.4));
    color: #dc2626 !important;
}

/* Wallet Balance Card - Red Gradient */
.myJob-wrapper-single-balance.total_balance {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left-color: #dc2626;
}

.myJob-wrapper-single-balance.total_balance svg {
    color: #dc2626 !important;
}

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

.myJob-wrapper-single-balance[style*="background-color: #fff3cd"] svg {
    color: #f59e0b !important;
}

/* Section Headers */
.single-profile-settings-header-title {
    color: #dc2626;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.single-profile-settings-header-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
    border-radius: 2px;
}

/* Profit Chart Section */
.profit-chart-filters {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #fca5a5;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.profit-chart-filters .form-label {
    color: #dc2626;
    font-weight: 600;
}

.profit-chart-filters .form-control,
.profit-chart-filters select {
    border-color: #dc2626;
    color: #1f2937;
    transition: all 0.3s ease;
}

.profit-chart-filters .form-control:focus,
.profit-chart-filters select:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
    outline: none;
}

.profit-chart-actions .btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.profit-chart-actions .btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* AI Tool Buttons */
.ai-analyzer-btn-primary,
.ai-proposal-btn {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    padding: 12px 24px;
}

.ai-analyzer-btn-primary:hover,
.ai-proposal-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    color: #fff;
}

.ai-analyzer-btn-primary svg,
.ai-proposal-btn svg {
    color: #fff !important;
    filter: none;
}

/* Chart Container */
.profit-chart-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-left: 5px solid #dc2626;
    transition: all 0.3s ease;
}

.profit-chart-container:hover {
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
    border-left-width: 6px;
}

/* Profit Summary */
.profit-summary h5 {
    color: #1f2937;
}

.profit-summary .text-success {
    color: #dc2626 !important;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Profile Views Section */
.profile-views-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-left: 5px solid #dc2626;
}

.profile-view-stat-card {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #fca5a5;
    border-left: 4px solid #dc2626;
    transition: all 0.3s ease;
}

.profile-view-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.2);
    border-left-width: 6px;
}

.profile-view-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #dc2626;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-view-stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

/* Skills, Portfolio, Logins Cards */
.myJob-wrapper-single-balance:has(svg[style*="color: #8b5cf6"]) {
    border-left-color: #8b5cf6;
}

.myJob-wrapper-single-balance:has(svg[style*="color: #10b981"]) {
    border-left-color: #10b981;
}

.myJob-wrapper-single-balance:has(svg[style*="color: #3b82f6"]) {
    border-left-color: #3b82f6;
}

/* Override specific card colors to red theme */
.myJob-wrapper-single-balance:not(.total_balance):not([style*="background-color: #fff3cd"]) {
    border-left-color: #dc2626;
}

.myJob-wrapper-single-balance:not(.total_balance):not([style*="background-color: #fff3cd"]) svg {
    color: #dc2626 !important;
}

/* Section Borders */
.profile-border-top {
    border-top: 2px solid rgba(220, 38, 38, 0.1);
}

.single-profile-settings {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-left: 5px solid #dc2626;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.single-profile-settings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.single-profile-settings:hover::before {
    opacity: 1;
}

.single-profile-settings:hover {
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
    border-left-width: 6px;
}

/* Buttons */
.btn-profile.btn-bg-1 {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-profile.btn-bg-1:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    color: #fff;
}

/* Tables */
.custom_table.style-04 {
    border-radius: 8px;
    overflow: hidden;
}

.custom_table.style-04 thead {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.custom_table.style-04 thead th {
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 12px 15px;
}

.custom_table.style-04 tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(220, 38, 38, 0.1);
}

.custom_table.style-04 tbody tr:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    transform: translateX(4px);
}

.custom_table.style-04 tbody td {
    padding: 12px 15px;
    color: #1f2937;
}

/* Responsive */
@media (max-width: 768px) {
    .myJob-wrapper-single-balance {
        border-left-width: 4px;
        min-height: 120px;
    }
    
    .contract_single__balance-price {
        font-size: 24px;
    }
}

