/* ==========================================================================
   WORKPANEL PREMIUM CUSTOM DESIGN SYSTEM & ANIMATIONS
   Author: Advanced Agentic UI Team
   ========================================================================== */

:root {
    --wp-primary: #6366f1;
    --wp-primary-hover: #4f46e5;
    --wp-secondary: #8b5cf6;
    --wp-accent: #06b6d4;
    --wp-success: #10b981;
    --wp-warning: #f59e0b;
    --wp-danger: #ef4444;
    --wp-bg-card: #ffffff;
    --wp-text-main: #0f172a;
    --wp-text-muted: #64748b;
    --wp-border: #e2e8f0;
    --wp-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --wp-shadow-md: 0 10px 25px -5px rgba(99, 102, 241, 0.1), 0 8px 10px -6px rgba(99, 102, 241, 0.05);
    --wp-shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.15);
    --wp-radius-sm: 8px;
    --wp-radius-md: 12px;
    --wp-radius-lg: 18px;
    --wp-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animations */
@keyframes wpFloatCard {
    0% { transform: translateY(0px) rotate(0deg); filter: drop-shadow(0 4px 10px rgba(99, 102, 241, 0.15)); }
    50% { transform: translateY(-7px) rotate(1.5deg); filter: drop-shadow(0 12px 22px rgba(99, 102, 241, 0.25)); }
    100% { transform: translateY(0px) rotate(0deg); filter: drop-shadow(0 4px 10px rgba(99, 102, 241, 0.15)); }
}

@keyframes wpPulseBadge {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); transform: scale(1); }
    50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); transform: scale(1); }
}

@keyframes wpBadgeGlow {
    0% { filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.8)); transform: scale(1.06); }
    100% { filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4)); transform: scale(1); }
}

/* 3D Verified Badge & Shield Animations */
.image-freelancers-verify {
    animation: wpBadgeGlow 3s infinite cubic-bezier(0.4, 0, 0.6, 1);
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.image-freelancers-verify:hover {
    transform: scale(1.15) rotate(6deg);
}

@keyframes wpShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes wpModalSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Financial Dashboard Overview Cards */
.financial-dashboard-wrapper {
    margin-bottom: 32px;
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius-md);
    padding: 24px;
    box-shadow: var(--wp-shadow-sm);
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: var(--wp-transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wp-primary), var(--wp-secondary));
    opacity: 0;
    transition: var(--wp-transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wp-shadow-md);
    border-color: #cbd5e1;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--wp-transition);
}

.stat-card:hover .stat-icon-box {
    transform: scale(1.08) rotate(-4deg);
}

.stat-icon-earned { background: #e0e7ff; color: #4338ca; }
.stat-icon-available { background: #d1fae5; color: #047857; }
.stat-icon-withdrawn { background: #f3e8ff; color: #6b21a8; }

.stat-info h5 {
    margin: 0;
    font-size: 12.5px;
    color: var(--wp-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.stat-info .amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--wp-text-main);
    margin-top: 4px;
    letter-spacing: -0.5px;
}

/* KYC Notice Banner */
.kyc-alert-banner {
    background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    border-radius: var(--wp-radius-md);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--wp-shadow-sm);
    margin-top: 24px;
}

.kyc-alert-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

.kyc-alert-icon {
    font-size: 32px;
    color: var(--wp-danger);
    animation: wpFloatCard 3s ease-in-out infinite;
}

.kyc-alert-text h4 {
    margin: 0 0 4px;
    color: #991b1b;
    font-size: 16.5px;
    font-weight: 700;
}

.kyc-alert-text p {
    margin: 0;
    color: #b91c1c;
    font-size: 14px;
    line-height: 1.5;
}

.btn-verify-now {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: var(--wp-radius-sm);
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
    transition: var(--wp-transition);
}

.btn-verify-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Custom Status Pills */
.wp-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-badge-verified {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    animation: wpPulseBadge 2s infinite;
}

.wp-badge-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.wp-badge-rejected {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Form Controls & Inputs */
.felan-payout-dashboard .form-group input,
.freelancer-profile-form .form-group input,
.felan-verify-type select {
    border-radius: var(--wp-radius-sm);
    border: 1px solid var(--wp-border);
    padding: 12px 16px;
    font-size: 14.5px;
    transition: var(--wp-transition);
}

.felan-payout-dashboard .form-group input:focus,
.freelancer-profile-form .form-group input:focus {
    border-color: var(--wp-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    outline: none;
}

/* Messaging Chat Enhancements */
.ricetheme-messages .card-mess {
    border-radius: var(--wp-radius-md);
    padding: 16px 20px;
    margin-bottom: 14px;
    transition: var(--wp-transition);
}

.ricetheme-messages .card-send {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
}

.ricetheme-messages .card-receive {
    background: #f8fafc;
    border: 1px solid var(--wp-border);
    color: var(--wp-text-main);
}

/* ==========================================================================
   GLOBAL ULTRA-LUXURY FLOATING TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.wp-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999999 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100% - 48px);
}

.wp-toast {
    position: relative;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transform: translateY(-25px) scale(0.96);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-toast.wp-toast-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.wp-toast.wp-toast-hiding {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
}

.wp-toast-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    margin-top: 1px;
}

.wp-toast-body {
    flex: 1;
    min-width: 0;
}

.wp-toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    letter-spacing: -0.2px;
}

.wp-toast-msg {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.45;
    margin: 0;
    word-break: break-word;
}

.wp-toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    margin-top: -2px;
    margin-right: -6px;
    transition: color 0.2s ease;
    line-height: 1;
}

.wp-toast-close:hover {
    color: #0f172a;
}

.wp-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    transition: width linear;
}

/* Toast Themes */
.wp-toast-success {
    border-color: #bbf7d0;
}
.wp-toast-success .wp-toast-icon-wrap {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.wp-toast-success .wp-toast-progress {
    background: #10b981;
}

.wp-toast-error {
    border-color: #fecaca;
}
.wp-toast-error .wp-toast-icon-wrap {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}
.wp-toast-error .wp-toast-progress {
    background: #ef4444;
}

.wp-toast-warning {
    border-color: #fde68a;
}
.wp-toast-warning .wp-toast-icon-wrap {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.wp-toast-warning .wp-toast-progress {
    background: #f59e0b;
}

.wp-toast-info {
    border-color: #bfdbfe;
}
.wp-toast-info .wp-toast-icon-wrap {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}
.wp-toast-info .wp-toast-progress {
    background: #3b82f6;
}

