/* Google Fonts - Primary Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Google Fonts - Hanken Grotesk (commented for future use) */
/* @import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@200;300;400;500;600;700&display=swap'); */

/**
 * RemotePick Homepage Styles
 * Professional design with perfect blue theme
 * Optimized for shared hosting - no external dependencies
 */

:root {
    /* Typography - Primary Font System */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    /* Colors */
    --primary-blue: #1a365d;
    --primary-blue-hover: #0f1c2e;
    --secondary-blue: #2b4f7d;
    --light-blue: #e2e8f0;
    --success-green: #059669;
    --warning-orange: #d97706;
    --danger-red: #dc2626;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-large: 12px;
    --transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    --topnav-height: 70px;
    
    /* Orange Gradient Colors for CTA Buttons */
    --orange-primary: #FFB321;
    --orange-secondary: #FF5A3C;
    
    /* Admin-specific Color Variables */
    --admin-primary: #1a1a2e;
    --admin-secondary: #16213e;
    --admin-accent: #0f3460;
    --admin-success: #27ae60;
    --admin-warning: #f39c12;
    --admin-danger: #e74c3c;
    --admin-light: #ecf0f1;
    --admin-dark: #1a1a2e;
    --admin-sidebar-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --focus-ring: 2px solid var(--admin-accent);
}

/* Override Bootstrap primary color */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.text-primary {
    color: var(--primary-blue) !important;
}

/* Global Styles - Body uses normal font weight (400) */
body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400; /* Explicitly set normal weight for body */
}

/* ============================================================================
   UNIVERSAL UTILITY CLASSES
   Reusable across the entire platform for consistency and maintainability
   ============================================================================ */

/* Typography - Font Sizes */
.fs-xs { font-size: 0.75rem; }
.fs-sm { font-size: 0.875rem; }
.fs-base { font-size: 1rem; }
.fs-md { font-size: 1.125rem; }
.fs-lg { font-size: 1.25rem; }
.fs-xl { font-size: 1.5rem; }
.fs-2xl { font-size: 1.875rem; }
.fs-3xl { font-size: 2.25rem; }
.fs-4xl { font-size: 3rem; }

/* Typography - Font Weights */
.fw-light { font-weight: 300; }
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }

/* Text Colors - Default is black/dark */
.text-black { color: #000000 !important; }
.text-dark { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: #ffffff !important; }
.text-blue { color: var(--primary-blue) !important; }
.text-success { color: var(--success-green) !important; }
.text-warning { color: var(--warning-orange) !important; }
.text-danger { color: var(--danger-red) !important; }

/* Background Colors */
.bg-white { background-color: #ffffff !important; }
.bg-light { background-color: var(--background-light) !important; }
.bg-primary { background-color: var(--primary-blue) !important; }
.bg-secondary { background-color: var(--text-secondary) !important; }
.bg-success { background-color: var(--success-green) !important; }
.bg-warning { background-color: var(--warning-orange) !important; }
.bg-danger { background-color: var(--danger-red) !important; }

/* Spacing - Margin */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

/* Spacing - Margin Top */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

/* Spacing - Margin Bottom */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

/* Spacing - Padding */
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* Spacing - Padding Top */
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

/* Spacing - Padding Bottom */
.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

/* Borders */
.border-0 { border: 0 !important; }
.border { border: 1px solid var(--border-color) !important; }
.border-top { border-top: 1px solid var(--border-color) !important; }
.border-bottom { border-bottom: 1px solid var(--border-color) !important; }
.border-light { border-color: var(--border-color) !important; }
.rounded { border-radius: var(--border-radius) !important; }
.rounded-lg { border-radius: var(--border-radius-large) !important; }
.rounded-circle { border-radius: 50% !important; }

/* Shadows */
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: var(--shadow-light) !important; }
.shadow { box-shadow: var(--shadow-medium) !important; }
.shadow-lg { box-shadow: var(--shadow-large) !important; }

/* Display */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

/* Flexbox */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-start { justify-content: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.align-start { align-items: flex-start !important; }
.align-center { align-items: center !important; }
.align-end { align-items: flex-end !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* Text Alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Width & Height */
.w-100 { width: 100% !important; }
.w-75 { width: 75% !important; }
.w-50 { width: 50% !important; }
.w-25 { width: 25% !important; }
.h-100 { height: 100% !important; }

/* Universal Button Styles */
.btn-universal {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn-universal-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-universal-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-universal-primary {
    background-color: var(--primary-blue);
    color: #ffffff;
}

.btn-universal-primary:hover {
    background-color: var(--primary-blue-hover);
}

.btn-universal-secondary {
    background-color: var(--text-secondary);
    color: #ffffff;
}

.btn-universal-secondary:hover {
    background-color: #475569;
}

.btn-universal-success {
    background-color: var(--success-green);
    color: #ffffff;
}

.btn-universal-success:hover {
    background-color: #047857;
}

.btn-universal-danger {
    background-color: var(--danger-red);
    color: #ffffff;
}

.btn-universal-danger:hover {
    background-color: #b91c1c;
}

.btn-universal-outline {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-universal-outline:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
}

/* Universal Card Styles */
.card-universal {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
}

.card-universal-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-universal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-universal-body {
    color: var(--text-primary);
}

/* Universal Form Styles */
.form-label-universal {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.form-input-universal {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-input-universal:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-input-universal-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.875rem;
}

/* Profile Image Styles */
.current-profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   NAVIGATION STYLES
   ============================================================================ */

/* Public navigation styles for consistent look */
.navbar { 
    padding: 1rem 0; 
}

.navbar-logo { 
    height: 38px; 
    width: 160px; 
    object-fit: contain; 
    object-position: left center; 
}

/* 
 * Single CSS class for all topnav links across homepage & dashboards
 * ONLY nav links are bold (font-weight: 600) - body text remains normal
 * Royal Blue (#4169E1) -> Dark Blue (#1a365d) on hover with underline
 */
.navbar .navbar-nav .nav-item .nav-link.nav-text-link { 
    color: #4169E1; /* Royal Blue */
    font-weight: 600; /* Semi-bold for nav links only */
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.navbar .navbar-nav .nav-item .nav-link.nav-text-link:hover,
.navbar .navbar-nav .nav-item .nav-link.nav-text-link:focus { 
    color: #1a365d; /* Dark blue (current homepage dark blue) */
    text-decoration: underline;
}

.navbar .bi-bell, 
.navbar .bi-envelope { 
    font-size: 1.1rem; 
    color: var(--primary-blue); 
}

.navbar .nav-link:hover .bi-bell, 
.navbar .nav-link:hover .bi-envelope { 
    color: var(--secondary-blue); 
}

.notification-badge { 
    font-size: .65rem; 
}

.navbar .btn.auth-btn { 
    font-weight: 600; 
}

.navbar .btn.auth-btn.login-btn { 
    color: var(--primary-blue); 
    border-color: var(--primary-blue); 
}

.navbar .btn.auth-btn.login-btn:hover { 
    color: #fff; 
    background: linear-gradient(45deg, var(--primary-blue), #1e90ff);
    border-color: var(--primary-blue);
}

/* Auth buttons in navbar */
.navbar .btn.auth-btn.signup-btn,
.navbar .btn.btn-secondary-gradient {
    background: linear-gradient(45deg, #FF5A3C, #FFB321);
    border: none;
    color: #fff;
}

.navbar .btn.auth-btn.signup-btn:hover,
.navbar .btn.btn-secondary-gradient:hover {
    background: linear-gradient(45deg, #FFB321, #FF5A3C);
    color: #fff;
}

.navbar .dropdown-menu { 
    border: none; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    border-radius: 10px; 
}

.navbar .dropdown-item:hover { 
    background-color: #f8f9fa; 
}

/* Topnav specific styles */
.topnav-navbar {
    z-index: 1100;
    position: relative;
}

.topnav-notification-dropdown {
    width: 300px;
}

.topnav-badge-hidden {
    display: none;
}

.topnav-blue-tick {
    display: inline-block;
    position: relative;
}

.topnav-blue-tick .fa-certificate {
    color: #1e90ff;
    font-size: 0.8rem;
}

.topnav-blue-tick .fa-check {
    color: white;
    font-size: 0.4rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Dashboard status icons */
.status-icon-small {
    font-size: 0.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) { 
    .navbar-logo { 
        height: 30px; 
        width: 120px; 
    } 
}

.min-vh-75 {
    min-height: 75vh;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fdf2f8 0%, #fefefe 50%, #f9fafb 100%);
    color: var(--text-primary);
    padding: 1.5rem 0 4rem 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-top: -1rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.8) 0%, rgba(255,255,255,0) 60%),
                radial-gradient(ellipse at 20% 80%, rgba(253, 242, 248, 0.6) 0%, rgba(255,255,255,0) 60%);
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Ensure all hero text is dark and readable */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p {
    color: var(--text-primary) !important;
}

.hero-section .btn-outline-primary {
    color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
}

.hero-section .btn-outline-primary:hover {
    background-color: var(--primary-blue) !important;
    color: white !important;
}

/* Override any Bootstrap text utility classes in hero */
.hero-section .text-primary {
    color: var(--primary-blue) !important;
}

.hero-section .text-secondary,
.hero-section .text-muted {
    color: var(--text-secondary) !important;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: none;
}

.hero-highlight {
    color: var(--primary-blue);
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    opacity: 1;
    text-shadow: none;
}

.hero-cta-buttons {
    margin-bottom: 2.5rem;
}

.hero-cta-buttons .btn {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.hero-cta-buttons .btn-primary {
    background-color: white;
    color: var(--primary-blue);
    border-color: white;
}

.hero-cta-buttons .btn-primary:hover {
    background-color: var(--background-light);
    box-shadow: var(--shadow-large);
}

.hero-cta-buttons .btn-outline-primary {
    color: white;
    border-color: white;
    background-color: transparent;
}

.hero-cta-buttons .btn-outline-primary:hover {
    background-color: white;
    color: var(--primary-blue);
    box-shadow: var(--shadow-large);
}

/* Hero Search */
.hero-search {
    max-width: 700px;
}

.search-wrapper {
    position: relative;
    background: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-large);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.search-input {
    border: none;
    border-right: 1px solid #e2e8f0;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    background: white;
    color: var(--text-primary);
    flex: 1;
    min-width: 300px;
    border-radius: 0;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
    border-color: #e2e8f0;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-size: 1rem;
}

.search-category {
    border: none;
    border-right: 1px solid #e2e8f0;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 16px;
    color: var(--text-primary);
    padding: 1.2rem 2.5rem 1.2rem 1rem;
    font-size: 1rem;
    width: 140px;
    flex-shrink: 0;
    border-radius: 0;
    appearance: none;
    cursor: pointer;
}

.search-category:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--primary-blue);
    background-color: #f8f9fa;
}

.search-category:hover {
    background-color: #f8f9fa;
}

.search-btn {
    border: none;
    background-color: var(--primary-blue);
    color: white;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 0 var(--border-radius-large) var(--border-radius-large) 0;
    transition: var(--transition);
    min-width: 60px;
}

.search-btn:hover {
    background-color: var(--primary-blue-hover);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
    box-shadow: var(--shadow-large);
    display: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    transition: var(--transition);
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.suggestion-item:hover {
    background-color: #f8fafc;
    color: var(--primary-blue);
}

.suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
}

/* Hero Image */
.hero-image {
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-image img {
    max-width: 100%;
    width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-large);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
}

/* Job Cards */
.job-card {
    background: var(--background-white);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-height: auto;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), #1e90ff, var(--secondary-blue));
}

.job-card:hover {
    box-shadow: var(--shadow-large);
    border-color: var(--primary-blue);
}

.job-card-header {
    margin-bottom: 1rem;
}

.job-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.job-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 54, 93, 0.1);
}

.job-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
}

.job-title a:hover {
    color: var(--primary-blue);
}

.job-category {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
}

.job-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.job-budget {
    margin-bottom: 1rem;
}

.job-budget strong {
    color: var(--success-green);
    font-size: 1.1rem;
}

.job-skills {
    margin-bottom: 1rem;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

/* Skill Tags */
.skill-tag {
    display: inline-block;
    background-color: var(--background-light);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Job Card Extended Styles */
.job-header {
    margin-bottom: 1rem;
}

.job-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 54, 93, 0.1);
}

.job-stats {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.job-timing {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.client-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.client-name {
    font-weight: 500;
    color: var(--text-primary);
}

.price-range {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--success-green);
    margin-bottom: 0.25rem;
}

/* Job Badges */
.featured-badge {
    background: #ffd700;
    color: #000000;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #e6c200;
    z-index: 10;
    position: relative;
    margin-right: 0.5rem;
}

.urgent-badge {
    background: #ff0000;
    color: #ffffff;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #cc0000;
    z-index: 10;
    position: relative;
    animation: pulse 2s infinite;
    margin-right: 0.5rem;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.85; }
    100% { opacity: 1; }
}

/* Professional Job Listing Cards */
.job-listing-card {
    background: var(--background-white);
    border-radius: var(--border-radius-large);
    padding: 1.75rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-height: auto;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.job-listing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), #1e90ff, var(--secondary-blue));
    z-index: 1;
}

.job-listing-card:hover {
    box-shadow: var(--shadow-light);
    border-color: var(--text-primary);
    background: var(--background-white);
    transform: none;
}

.job-listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
    z-index: 5;
}

.job-listing-title-section {
    flex: 1;
    min-width: 0;
}

.job-listing-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-listing-title-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-listing-title a {
    color: #4169e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.job-listing-title a:hover {
    color: #1e40af;
    text-decoration: none;
}

.job-listing-title-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.job-listing-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.job-listing-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.job-listing-client-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-listing-client-name {
    font-weight: 500;
    color: var(--text-primary);
}

.job-listing-timing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-listing-price-section {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
}

.job-listing-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--success-green);
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.job-listing-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.job-listing-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.job-listing-skills {
    margin-bottom: 1rem;
}

.job-listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 54, 93, 0.1);
}

.job-listing-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.job-listing-stats i {
    margin-right: 0.25rem;
}

.job-listing-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Filter Sidebar */
.filter-card {
    background: var(--background-white);
    border-radius: var(--border-radius-large);
    padding: 3.5rem 2.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    transition: var(--transition);
    min-height: 400px;
}

.filter-card:hover {
    box-shadow: var(--shadow-medium);
}

.filter-card h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

/* Filter Form Styling */
.filter-card .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.filter-card .form-control,
.filter-card .form-select {
    font-size: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    background-color: var(--background-white);
}

.filter-card .form-control:focus,
.filter-card .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(65, 105, 225, 0.1);
}

/* Apply Page Styles */
.apply-page-wrapper {
    font-family: var(--rp-font-base);
    font-size: 0.85rem;
}

.apply-page-wrapper .form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.apply-page-wrapper .form-control,
.apply-page-wrapper .form-select {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.apply-page-wrapper .form-control:focus,
.apply-page-wrapper .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(65, 105, 225, 0.1);
}

.apply-page-wrapper .btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.apply-page-wrapper .small,
.apply-page-wrapper small {
    font-size: 0.7rem;
}

.apply-page-wrapper .text-muted {
    color: #64748b;
    font-size: 0.7rem;
}

/* Auto-grow textarea */
.auto-grow {
    resize: vertical;
    min-height: 120px;
}

/* Apply Page Header Styles */
.apply-page-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.apply-job-budget {
    font-size: 0.75rem;
    color: #059669;
    font-weight: 600;
}

/* Blue Tick Badge - Fixed */
.blue-tick-badge {
    font-size: 16px;
    margin-left: -2px;
    display: inline-block;
    color: #4169e1;
}

.blue-tick-badge .fa-certificate {
    color: #4169e1;
}

.blue-tick-badge .fa-check {
    font-size: 0.5em;
    color: white;
}

/* Form Validation Styles */
.bid-validation {
    margin-top: 0.25rem;
    display: none;
}

.boost-warning {
    font-size: 0.8rem;
    display: none;
}

.submit-disabled-reason {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    display: none;
}

/* Submit Button */
.apply-submit-btn {
    min-width: 220px;
    font-weight: 600;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

/* Boost Panel Styles */
.boost-panel {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.boost-ranking-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: auto;
}

.boost-ranking-board {
    background: var(--background-white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    width: 100%;
    max-width: 840px;
    font-family: var(--rp-font-base);
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.boost-ranking-board .ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.boost-ranking-board .ranking-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.boost-ranking-board .ranking-meta {
    font-size: 0.7rem;
    color: #64748b;
}

.boost-ranking-board .total-boosted {
    font-size: 0.7rem;
    color: #64748b;
}

.boost-ranking-board .ranking-subtext {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.boost-ranking-board .subtext-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    display: block;
    margin-bottom: 0.25rem;
}

.boost-ranking-board .subtext-desc {
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.4;
}

.boost-ranking-board .ranking-list {
    padding: 0;
}

/* Ranking Items */
.ranking-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
    font-size: 0.8rem;
    position: relative;
}

.ranking-item:nth-child(even) {
    background: #f8fafc;
}

.ranking-item:first-child {
    background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 100%);
    border-left: 3px solid #fbbf24;
}

.ranking-item:nth-child(2) {
    background: linear-gradient(90deg, #e0f2fe 0%, #bae6fd 100%);
    border-left: 3px solid #38bdf8;
}

.ranking-item:nth-child(3) {
    background: linear-gradient(90deg, #ede9fe 0%, #ddd6fe 100%);
    border-left: 3px solid #a78bfa;
}

.ranking-item.empty-slot {
    opacity: 0.6;
    background: #f8fafc;
}

.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-weight: 600;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.rank-badge.rank-1 {
    background: #fbbf24;
    color: #92400e;
}

.rank-badge.rank-2 {
    background: #38bdf8;
    color: #0c4a6e;
}

.rank-badge.rank-3 {
    background: #a78bfa;
    color: #581c87;
}

.rank-badge.rank-other {
    background: #e5e7eb;
    color: #6b7280;
}

.rank-number {
    font-size: 0.7rem;
}

.entry-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entry-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
}

.entry-name.user-name {
    color: #2563eb;
    font-weight: 600;
}

.entry-name.empty-name {
    color: #9ca3af;
    font-style: italic;
}

.entry-boost {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.top-tier-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    color: #fbbf24;
    font-size: 0.7rem;
}

.boost-insight {
    transition: background-color 0.25s ease, color 0.25s ease;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.boost-amount {
    font-size: 0.7rem;
    font-weight: 500;
}

.boost-icon {
    color: var(--primary-blue);
    font-size: 0.7rem;
}

.filter-card .btn {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
}

.filters-scroll {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.filters-scroll::-webkit-scrollbar {
    width: 4px;
}

.filters-scroll::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 2px;
}

.filters-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.filters-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Category Cards */
.category-card {
    display: block;
    background: var(--background-white);
    border-radius: var(--border-radius-large);
    padding: 0.75rem 0.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    min-height: 140px;
}

.category-card:hover {
    box-shadow: var(--shadow-large);
    border-color: var(--primary-blue);
    text-decoration: none;
    color: var(--text-primary);
}

.category-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-icon i {
    font-size: 1rem;
    color: white;
}

.category-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.category-jobs {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 0;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--background-light);
}

.how-it-works-tabs {
    margin-bottom: 3rem;
}

.tab-btn {
    background: var(--background-white);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.875rem 2rem;
    margin: 0 0.5rem;
    border-radius: var(--border-radius-large);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-medium);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

.step-card {
    background: var(--background-white);
    border-radius: var(--border-radius-large);
    padding: 1rem 0.75rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    min-height: 170px;
}

.step-card:hover {
    box-shadow: var(--shadow-large);
    border-color: var(--primary-blue);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    transition: var(--transition);
}

.step-card:hover .step-icon {
    transform: scale(1.1);
}

.step-icon i {
    font-size: 1.25rem;
    color: white;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.85rem;
}

/* Freelancer Cards - Dark Theme */
.freelancer-card {
    background: #121B34;
    color: #fff;
    border-radius: var(--border-radius-large);
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.freelancer-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 179, 33, 0.5);
    transform: translateY(-2px);
}

.freelancer-card-header {
    margin-bottom: 1rem;
}

.freelancer-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 179, 33, 0.3);
}

.avatar-verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: #FFB321;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #121B34;
}

.avatar-verified-badge i {
    color: #121B34;
    font-size: 0.65rem;
}

.freelancer-name a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.freelancer-name a:hover {
    color: #FFB321;
}

.freelancer-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin: 0.5rem 0;
}

.freelancer-rating {
    margin-bottom: 0.75rem;
}

.stars {
    color: #FFB321;
    margin-bottom: 0.25rem;
}

.rating-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.freelancer-skills {
    margin-bottom: 0.75rem;
}

.freelancer-meta {
    text-align: left;
}

.hourly-rate {
    color: #FFB321;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.location {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

/* Score bar for dark freelancer cards */
.freelancer-card .score-bar {
    background: rgba(255, 255, 255, 0.25);
}

.freelancer-card .score-bar-fill {
    background: linear-gradient(90deg, #FFB321, #FF5A3C);
}

/* Call-to-Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-buttons .btn {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

/* Royal Purple Gradient for CTA buttons */
.cta-buttons .btn-royal-purple {
    background: linear-gradient(45deg, #4b0082, #8a2be2);
    color: white;
    border: none;
}

.cta-buttons .btn-royal-purple:hover {
    background: linear-gradient(45deg, #8a2be2, #4b0082);
    box-shadow: 0 6px 20px rgba(75, 0, 130, 0.4);
}

.cta-buttons .btn-royal-purple:focus,
.cta-buttons .btn-royal-purple:active {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(75, 0, 130, 0.25);
}

/* ============================================================================
   GRADIENT BUTTON SYSTEM - PLATFORM WIDE
   ============================================================================ */

/* PRIMARY BUTTON - Ocean Blue Gradient (Default for primary actions) */
.btn-primary-gradient,
.btn-ocean-blue {
    background: linear-gradient(45deg, var(--primary-blue), #1e90ff);
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-gradient:hover,
.btn-ocean-blue:hover {
    background: linear-gradient(45deg, #1e90ff, var(--primary-blue));
    color: white;
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
    text-decoration: none;
}

.btn-primary-gradient:focus,
.btn-primary-gradient:active,
.btn-ocean-blue:focus,
.btn-ocean-blue:active {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(26, 54, 93, 0.25);
}

.btn-primary-gradient::before,
.btn-ocean-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary-gradient:hover::before,
.btn-ocean-blue:hover::before {
    left: 100%;
}

/* SECONDARY BUTTON - Orange Gradient (Default for secondary actions) */
.btn-secondary-gradient,
.btn-orange-gradient {
    background: linear-gradient(45deg, var(--orange-secondary), var(--orange-primary));
    border: none;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 90, 60, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary-gradient:hover,
.btn-orange-gradient:hover {
    background: linear-gradient(45deg, var(--orange-primary), var(--orange-secondary));
    box-shadow: 0 6px 20px rgba(255, 90, 60, 0.42);
    color: #fff;
    text-decoration: none;
}

.btn-secondary-gradient:focus,
.btn-secondary-gradient:active,
.btn-orange-gradient:focus,
.btn-orange-gradient:active {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(255, 90, 60, 0.28);
}

.btn-secondary-gradient::before,
.btn-orange-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: 0.5s;
}

.btn-secondary-gradient:hover::before,
.btn-orange-gradient:hover::before {
    left: 100%;
}

/* TERTIARY BUTTON - Purple Gradient (For special actions) */
.btn-tertiary-gradient,
.btn-royal-purple {
    background: linear-gradient(45deg, #4b0082, #8a2be2);
    color: white;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-tertiary-gradient:hover,
.btn-royal-purple:hover {
    background: linear-gradient(45deg, #8a2be2, #4b0082);
    color: white;
    box-shadow: 0 6px 20px rgba(75, 0, 130, 0.4);
    text-decoration: none;
}

.btn-tertiary-gradient:focus,
.btn-tertiary-gradient:active,
.btn-royal-purple:focus,
.btn-royal-purple:active {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(75, 0, 130, 0.25);
}

.btn-tertiary-gradient::before,
.btn-royal-purple::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-tertiary-gradient:hover::before,
.btn-royal-purple:hover::before {
    left: 100%;
}

/* Empty States */
.empty-state {
    padding: 3rem 1rem;
}

.empty-state i {
    opacity: 0.5;
}

.empty-state h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Form Elements for Jobs Page */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: var(--background-white);
}

.form-control:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
    background-color: var(--background-white);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-check-input {
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(26, 54, 93, 0.25);
}

.form-check-label {
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Pagination Styles */
.pagination {
    margin: 0;
}

.page-link {
    color: var(--primary-blue);
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.page-link:hover {
    color: var(--background-white);
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    text-decoration: none;
}

.page-link:focus {
    color: var(--primary-blue);
    background-color: var(--background-light);
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(26, 54, 93, 0.25);
}

.page-item.active .page-link {
    z-index: 3;
    color: var(--background-white);
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    pointer-events: none;
    background-color: var(--background-light);
    border-color: var(--border-color);
}

/* Sort and Filter Controls */
.search-filters {
    background: var(--background-white);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    padding-left: 3rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 2;
}

.filter-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
    background-color: transparent;
}

.btn-outline-secondary:hover {
    color: var(--background-white);
    background-color: var(--text-secondary);
    border-color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        padding: 2rem 0 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image img {
        max-height: 400px;
        padding: 0.25rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .hero-cta-buttons .btn,
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-cta-buttons .btn:last-child,
    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .tab-btn {
        display: block;
        width: 100%;
        margin: 0 0 0.5rem 0;
    }
    
    .step-card,
    .job-card,
    .freelancer-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1.5rem 0 2.5rem 0;
        min-height: 350px;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-image img {
        max-height: 350px;
        padding: 0.15rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .step-icon,
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-icon i,
    .category-icon i {
        font-size: 1rem;
    }
    
    /* Jobs Page Mobile Adjustments */
    .filter-card {
        margin-bottom: 1.25rem;
        padding: 2.5rem 2rem;
        min-height: 350px;
    }
    
    .search-filters {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .job-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .job-listing-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .job-listing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .job-listing-price-section {
        text-align: left;
        align-items: flex-start;
    }
    
    .job-listing-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .job-listing-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .job-header {
        margin-bottom: 0.75rem;
    }
    
    .job-footer {
        padding-top: 0.75rem;
    }
    
    .price-range {
        font-size: 1rem;
    }
    
    .skill-tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
        margin-right: 0.25rem;
        margin-bottom: 0.25rem;
    }
    
    .job-stats {
        font-size: 0.7rem;
    }
    
    .featured-badge,
    .urgent-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Verified Badge - Font Awesome Certificate (Homepage) */
.verified-badge {
    display: inline-block;
    position: relative;
    margin-left: 0;
    top: -1px;
    vertical-align: middle;
}

.verified-badge::before {
    content: "\f0a3";
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    color: #1DA1F2;
    font-size: 18px;
}

.verified-badge::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}

.verified-badge i {
    display: none !important;
}

.verified-badge-lg {
    margin-left: 0;
}

.verified-badge-lg::before {
    font-size: 22px;
}

.verified-badge-lg::after {
    font-size: 12px;
}

.verified-badge-sm {
    margin-left: 0;
}

.verified-badge-sm::before {
    font-size: 16px;
}

.verified-badge-sm::after {
    font-size: 9px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
.btn:focus,
.tab-btn:focus,
.search-input:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-section,
    .cta-section {
        background: white !important;
        color: black !important;
    }
    
    .btn {
        border: 1px solid black !important;
        background: white !important;
        color: black !important;
    }
    
    .shadow-light,
    .shadow-medium,
    .shadow-large {
        box-shadow: none !important;
    }
}

/* ============================================================================
   DASHBOARD NAVIGATION & LAYOUT
   ============================================================================ */

/* Top Navigation for Dashboard */
.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topnav-height);
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.topnav-brand {
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 1.25rem;
}

.topnav-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topnav-nav-item {
    margin: 0;
}

/* ============================================================================
   ADMIN DASHBOARD STYLES
   ============================================================================ */

/* Admin Dashboard Specific Styles */
.admin-sidebar {
    background: var(--admin-sidebar-bg);
    min-height: 100vh;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    border-right: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 10px 16px;
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link.is-active {
    color: white;
    background-color: rgba(255,255,255,0.1);
    transform: translateX(5px);
    text-decoration: none;
}

.admin-sidebar .nav-link i {
    width: 18px;
    margin-right: 8px;
    font-size: 0.9rem;
}

.admin-content {
    background-color: var(--background-light);
    min-height: 100vh;
    padding: 20px;
}

/* Admin scoped brand (avoid clashing with generic .sidebar-brand used in other dashboards) */
.admin-sidebar .sidebar-brand {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar .sidebar-brand h4 {
    color: #fff;
    margin: 0;
    font-weight: 700;
    font-size: 1.25rem;
}

.admin-sidebar .sidebar-brand small {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

.user-dropdown {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    margin: 10px;
    padding: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.btn-admin-primary {
    background: linear-gradient(45deg, var(--admin-accent), #2980b9);
    border: none;
    color: white;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.btn-admin-primary:hover {
    background: linear-gradient(45deg, #2980b9, var(--admin-accent));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 20px;
    border-left: 4px solid var(--admin-accent);
    border-radius: var(--border-radius-large) !important;
    background: var(--background-white);
}

.stat-card.primary { border-left-color: var(--admin-accent); }
.stat-card.success { border-left-color: var(--admin-success); }
.stat-card.warning { border-left-color: var(--admin-warning); }
.stat-card.danger { border-left-color: var(--admin-danger); }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--admin-dark);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.page-header {
    background: linear-gradient(135deg, white 0%, var(--admin-light) 100%);
    padding: 20px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
}

.quick-actions {
    margin-bottom: 20px;
}

.quick-action-btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

.search-filters {
    background: var(--background-white);
    padding: 20px;
    border-radius: var(--border-radius-large);
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
}

.action-buttons .btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--admin-danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Admin Header */
.admin-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

/* Stats Cards for Admin Dashboard */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: none;
}

.stats-card .stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stats-card .stats-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--admin-dark);
}

.stats-card .stats-label {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Compact variant for dashboard top KPIs */
.stats-card.compact {
    padding: 10px 10px 8px;
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
}

.stats-card.compact .stats-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-bottom: 4px;
}

.stats-card.compact .stats-number { 
    font-size: 1rem; 
    line-height: 1.1; 
}

.stats-card.compact .stats-label { 
    font-size: 0.55rem; 
    letter-spacing: .5px; 
    text-transform: uppercase; 
}

/* Admin Card Overrides */
.admin-content .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.admin-content .card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0 !important;
    padding: 16px 20px;
}

.admin-content .card-body {
    padding: 16px 20px;
}

/* Admin Button Overrides */
.admin-content .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-content .btn-primary {
    background: linear-gradient(45deg, var(--admin-accent), #2980b9);
    border: none;
    color: white;
}

.admin-content .btn-primary:hover {
    background: linear-gradient(45deg, #2980b9, var(--admin-accent));
    color: white;
}

/* Admin Table Styles */
.admin-content .table {
    border-radius: 10px;
    overflow: hidden;
}

.admin-content .table thead th {
    background-color: #f8f9fa;
    border: none;
    font-weight: 600;
    color: var(--admin-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
}

/* Admin Badge Styles */
.admin-content .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Admin Navigation Tabs */
.admin-content .nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.admin-content .nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
}

.admin-content .nav-tabs .nav-link.active {
    color: var(--admin-accent);
    background-color: white;
    border-bottom: 2px solid var(--admin-accent);
}

/* Accessible focus styles for keyboard users */
.admin-sidebar .nav-link:focus-visible { 
    outline: var(--focus-ring); 
    outline-offset: 2px; 
}

/* Admin Form Styles */
.admin-content .form-control, 
.admin-content .form-select {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 10px 15px;
}

.admin-content .form-control:focus, 
.admin-content .form-select:focus {
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 0.2rem rgba(15, 52, 96, 0.25);
}

.admin-content .form-control::placeholder { 
    color: var(--text-muted); 
    opacity: .85; 
}

/* Admin Sidebar Dropdown Styles */
.admin-sidebar .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Dashboard Content Styles */
.dashboard-content {
    padding: 20px;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
}

/* Generic Sidebar Styles (for other dashboards) */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: 3px 0 15px rgba(0,0,0,0.2);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 999;
}

.sidebar-user {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.08);
}

.sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav-item {
    margin: 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
    border-left-color: #FFB321;
    text-decoration: none;
}

.sidebar-nav-link i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

.main-content {
    margin-left: 250px;
    min-height: 100vh;
    background-color: var(--background-light);
}

/* Client/Freelancer Card Components */
.talent-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.talent-card:hover {
    box-shadow: var(--shadow-large);
}

.talent-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.talent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.score-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    margin: 1rem 0 0.5rem;
}

.score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transition: width 0.3s ease;
}

/* Job Application Styles */
.application-form {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin-bottom: 2rem;
}

.job-sidebar {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.client-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.client-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
}

/* Dashboard Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dashboard-content,
    .admin-content {
        padding: 15px;
    }
    
    .dashboard-title {
        font-size: 1.1rem;
    }
    
    .talent-card,
    .dashboard-card {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .dashboard-title {
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .talent-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Job Page Extended Styles - Client Cards and Sidebars */
.job-sidebar {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-light);
}

.client-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1rem 1.125rem;
    margin-bottom: 1.125rem;
    border: 1px solid var(--border-color);
}

.client-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
}

.client-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-company {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

.client-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    text-align: center;
    margin: 0.875rem 0 0.625rem;
}

.client-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-stat i {
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.client-stat-value {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.client-stat-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.client-location {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid var(--border-color);
}

/* File Attachments */
.file-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.7rem;
    margin: 0.125rem 0.375rem 0.125rem 0;
}

.file-remove-btn {
    background: none;
    border: none;
    color: var(--danger-red);
    padding: 0;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.file-remove-btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Milestone Styles */
.milestone-mismatch {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    color: var(--warning-orange);
}

/* Enhanced Job Card Foundation */
.rp-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
}

.rp-card-header {
    padding: 1.5rem 1.5rem 0.5rem;
    border-bottom: 1px solid rgba(241, 245, 249, 1);
    background: var(--background-white);
}

.rp-card-body {
    padding: 1.5rem;
}

.rp-section {
    margin-bottom: 1.5rem;
}

.rp-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--primary-blue);
}

.rp-helper {
    font-size: 0.725rem;
    color: var(--text-secondary);
}

.credits-summary {
    font-size: 0.8rem;
    background: var(--background-light);
    padding: 0.625rem 0.75rem;
    border-radius: var(--border-radius);
    line-height: 1.35;
}

.credits-summary strong {
    color: var(--text-primary);
}

/* Mobile Responsive Adjustments for Extended Styles */
@media (max-width: 767.98px) {
    .rp-card-header {
        padding: 1.125rem 1rem 0.25rem;
    }
    
    .rp-card-body {
        padding: 1rem;
    }
    
    .rp-section-title {
        font-size: 1rem;
    }
    
    .credits-summary {
        font-size: 0.75rem;
    }
    
    .client-card {
        padding: 0.875rem;
    }
    
    .client-stats {
        gap: 0.5rem;
    }
    
    .client-avatar {
        width: 44px;
        height: 44px;
    }
}

/* Job Detail Page Styles */
.attachment-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.attachment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.attachment-preview {
    border: 1px solid #e9ecef;
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

#attachmentModal .modal-body {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#attachmentContent {
    width: 100%;
}

/* File Type Specific Colors */
.text-pdf { color: #dc3545; }
.text-word { color: #0d6efd; }
.text-excel { color: #198754; }
.text-archive { color: #ffc107; }

/* Job Detail Card Hover Effects */
.job-card-hover {
    transition: none;
    border: 1px solid #e2e8f0;
}

.job-card-hover:hover {
    transform: none;
    box-shadow: none;
    border-color: #e2e8f0;
    background: inherit;
}

.hover-link {
    transition: none;
}

.hover-link:hover {
    color: inherit !important;
}

/* Job Detail Enhanced Styles */
h1.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.job-title-detail {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

/* Screening Questions Styling */
.screening-section-permanent {
    background: var(--background-white);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.screening-section-permanent .section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.screening-section-permanent .section-title i {
    color: var(--primary-blue);
    font-size: 0.8rem;
}

.screening-questions-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.info-banner {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #1e40af;
}

.single-question {
    background: var(--background-white);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-size: 0.8rem;
    line-height: 1.4;
}

.question-number {
    background: var(--primary-blue);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.job-meta-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.job-posted-time {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
}

.job-budget-detail {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--success-green);
    margin-bottom: 0.25rem;
}

.job-type {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: capitalize;
}

.job-stats-detail {
    display: flex;
    gap: 2rem;
    margin: 1.25rem 0;
    padding: 0;
}

.job-stat-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
}

.job-stat-item i {
    color: #94a3b8;
    font-size: 0.7rem;
    margin-right: 0.5rem;
}

.job-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--background-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.job-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.job-detail-icon {
    width: 14px;
    height: 14px;
    color: #475569;
    font-size: 0.7rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.job-detail-content {
    flex: 1;
}

.job-detail-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.job-detail-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.job-description-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.job-description-detail {
    font-size: 0.8rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1.25rem;
}

.section-title-job {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title-job i {
    color: var(--primary-blue);
    font-size: 0.8rem;
}

.payment-verification {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-verification.verified {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.payment-verification.unverified {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.payment-verification i {
    font-size: 0.9rem;
}

.payment-verification-text {
    font-weight: 600;
    font-size: 0.75rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.75rem;
}

/* Screening Questions Styles */
.screening-section-permanent {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 1.5rem !important;
}

.screening-questions-container {
    display: block !important;
    visibility: visible !important;
}

.questions-list {
    display: block !important;
}

.single-question {
    display: block !important;
    visibility: visible !important;
}

.single-question .d-flex,
.single-question .question-number,
.single-question span {
    display: flex !important;
    visibility: visible !important;
}

.single-question .question-number {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.single-question span {
    display: block !important;
}

/* Proposal and Similar Job Styles */
.proposal-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.proposal-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.proposal-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.similar-job-item {
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

.similar-job-item:hover {
    border-color: var(--primary-blue);
    background: var(--background-light);
    text-decoration: none;
}

.similar-job-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.similar-job-meta {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Job Detail Buttons */
.btn-apply {
    background: linear-gradient(135deg, var(--primary-blue), #1d4ed8);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.btn-apply:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-save {
    background: var(--background-white);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.btn-save:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: var(--background-light);
}

.gradient-btn {
    background: linear-gradient(45deg, var(--admin-accent, #0f3460), #2980b9) !important;
    border: none !important;
    color: var(--background-white) !important;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 52, 96, 0.3);
    padding: 0.35rem 1.25rem !important;
    height: 32px !important;
    font-size: 15px !important;
    position: relative;
    overflow: hidden;
}

.gradient-btn:hover {
    background: linear-gradient(45deg, #2980b9, var(--admin-accent, #0f3460)) !important;
    color: #f8f9fa !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 52, 96, 0.4);
}

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

.gradient-btn:hover::before {
    left: 100%;
}

/* Job Detail Mobile Responsive */
@media (max-width: 992px) {
    .job-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .job-stats-detail {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .job-title-detail {
        font-size: 0.9rem;
    }
    
    .job-budget-detail {
        font-size: 0.8rem;
    }
    
    .job-stats-detail {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .job-details-grid {
        padding: 1rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* ============================================
   CONTRACT APPROVAL & ESCROW SYSTEM STYLES
   ============================================ */

/* Milestone Badges */
.milestone-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: capitalize;
}

.milestone-badge-draft {
    background-color: #f3f4f6;
    color: #6b7280;
}

.milestone-badge-pending {
    background-color: #fef3c7;
    color: #d97706;
}

.milestone-badge-submitted {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.milestone-badge-approved {
    background-color: #d1fae5;
    color: #059669;
}

.milestone-badge-revision_requested {
    background-color: #fee2e2;
    color: #dc2626;
}

.milestone-badge-completed {
    background-color: #d1fae5;
    color: #047857;
}

/* Timesheet Badges */
.timesheet-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: capitalize;
}

.timesheet-badge-draft {
    background-color: #f3f4f6;
    color: #6b7280;
}

.timesheet-badge-submitted {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.timesheet-badge-approved {
    background-color: #d1fae5;
    color: #059669;
}

.timesheet-badge-paid {
    background-color: #d1fae5;
    color: #047857;
}

.timesheet-badge-revision_requested {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Milestone Info Grid */
.milestone-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.milestone-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.info-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.amount-highlight {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

/* Approval Timeline */
.approval-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: var(--border-radius);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 2rem;
    width: 2px;
    height: calc(100% + 0.5rem);
    background-color: #e5e7eb;
}

.timeline-marker {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    background-color: #ffffff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-marker-completed {
    border-color: var(--success-green);
    background-color: var(--success-green);
}

.timeline-marker-active {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.timeline-marker-warning {
    border-color: var(--warning-orange);
    background-color: var(--warning-orange);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.timeline-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.timeline-countdown {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: 0.25rem;
}

/* Work Description Box */
.work-description-box {
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    line-height: 1.75;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Deliverables Section */
.deliverables-section {
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.deliverable-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.deliverable-file-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.deliverable-file-card:hover {
    background-color: #f9fafb;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.deliverable-file-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.deliverable-file-name {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deliverable-download-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.deliverable-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.deliverable-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
    overflow: hidden;
}

.deliverable-link:hover {
    background-color: #f0f9ff;
    border-color: var(--primary-blue);
}

.deliverable-link-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

/* Review Actions */
.review-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.review-action-card {
    padding: 1.5rem;
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-large);
    transition: var(--transition);
}

.review-action-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-medium);
}

.review-action-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-action-icon {
    width: 3rem;
    height: 3rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
}

.review-action-icon-success {
    background-color: #d1fae5;
    color: var(--success-green);
}

.review-action-icon-warning {
    background-color: #fef3c7;
    color: var(--warning-orange);
}

.review-action-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.review-action-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* File Upload Area */
.file-upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    background-color: #f9fafb;
    transition: var(--transition);
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-blue);
    background-color: #f0f9ff;
}

.file-upload-area.drag-over {
    border-color: var(--primary-blue);
    background-color: #dbeafe;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.file-upload-icon {
    width: 3rem;
    height: 3rem;
    color: var(--text-secondary);
}

.file-upload-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.file-upload-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* File List */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.file-item-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.file-item-name {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-size {
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.info-box-primary {
    background-color: #dbeafe;
    border-color: var(--primary-blue);
}

.info-box-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.info-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.info-list li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Hours Badge */
.hours-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background-color: #ede9fe;
    color: #7c3aed;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius);
}

/* Amount Value */
.amount-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}

.stat-icon svg {
    width: 2rem;
    height: 2rem;
}

.stat-icon-blue {
    background-color: #dbeafe;
    color: var(--primary-blue);
}

.stat-icon-yellow {
    background-color: #fef3c7;
    color: var(--warning-orange);
}

.stat-icon-green {
    background-color: #d1fae5;
    color: var(--success-green);
}

.stat-icon-purple {
    background-color: #ede9fe;
    color: #7c3aed;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Filter Form */
.filter-form {
    width: 100%;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Table Enhancements */
.row-highlight {
    background-color: #fef9c3;
}

.table-cell-primary {
    font-weight: 600;
    color: var(--text-primary);
}

.table-cell-secondary {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Modal Enhancements */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 600px;
    z-index: 10000;
}

.modal-content {
    background-color: #ffffff;
    border-radius: var(--border-radius-large);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: var(--text-primary);
}

.modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-secondary);
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Milestone Description */
.milestone-description {
    line-height: 1.75;
    color: var(--text-secondary);
}

/* ============================================================================
   Messages Module Enhancements (Client Dashboard)
   ============================================================================ */

.messages-module {
    padding: 0;
    background-color: #f8fafc;
    margin-top: -1.5rem; /* Remove top space completely */
}

.messages-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 72px); /* Full viewport minus top nav only */
    min-height: 640px;
}

.messages-topbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.625rem 1rem 0.375rem 1rem; /* Top: 10px, Bottom: 6px for vertical centering */
}

.messages-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.messages-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.messages-new-btn {
    border-radius: 999px;
    padding: 0.375rem 0.875rem;
    font-weight: 500;
    font-size: 0.8125rem;
}

.messages-new-btn i {
    font-size: 0.75rem;
}

.messages-module .freelancer-search-wrapper {
    position: relative;
}

.messages-module .freelancer-search-wrapper .input-group {
    background-color: #ffffff;
}

.messages-module .freelancer-search-wrapper .form-control {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #1f2937;
}

.messages-module .freelancer-search-wrapper .form-control::placeholder {
    color: #9ca3af;
    font-size: 0.8125rem;
}

.messages-module .freelancer-search-wrapper .form-control:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.messages-module .freelancer-search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
    max-height: 360px;
    overflow-y: auto;
    z-index: 20;
}

.messages-module .freelancer-search-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 48px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    transform: rotate(45deg);
}

.messages-sidebar {
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.messages-sidebar-section {
    padding: 0.625rem 0.875rem 0.625rem 0.4375rem; /* Reduced left padding by 50% */
}

.messages-sidebar-tabs {
    padding: 0.5rem 0.875rem 0.5rem 0.4375rem; /* Reduced left padding by 50% */
}

.messages-sidebar .input-group-text {
    color: #9ca3af;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-right: 0;
}

.messages-sidebar .form-control {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 0;
    height: auto;
}

.messages-sidebar .form-control:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.messages-sidebar .form-control:focus + .input-group-text,
.messages-sidebar .input-group-text:has(+ .form-control:focus) {
    background-color: #ffffff;
    border-color: #3b82f6;
}

.messages-sidebar .form-control::placeholder {
    font-size: 0.75rem;
    color: #9ca3af;
}

.messages-sidebar .conversation-item {
    border-left: 3px solid transparent;
    border-radius: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    padding: 0.625rem 0.875rem 0.625rem 0.4375rem; /* Reduced left padding by 50% */
    cursor: pointer;
}

.messages-sidebar .conversation-item:hover {
    background-color: #f4f6fb;
    border-left-color: var(--primary-blue);
}

.messages-sidebar .conversation-item.active {
    background-color: #e3ecff;
    border-left-color: var(--primary-blue);
    box-shadow: inset 1px 0 0 rgba(59, 130, 246, 0.2);
}

.messages-sidebar .conversation-item.unread {
    background-color: #fefce8;
}

.messages-sidebar .conversation-item.unread:hover {
    background-color: #fef9c3;
}

.messages-sidebar .conversation-item h6 {
    font-size: 0.8125rem;
    letter-spacing: -0.01em;
    font-weight: 500;
}

.messages-sidebar .conversation-item .small,
.messages-sidebar .conversation-item small {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.messages-conversation {
    align-items: flex-start;
    gap: 0.625rem;
    width: 100%;
}

.messages-module .avatar-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.messages-module .avatar-image,
.messages-module .avatar-initials {
    width: var(--avatar-size, 48px);
    height: var(--avatar-size, 48px);
    border-radius: 50%;
}

.messages-module .avatar-image {
    object-fit: cover;
    display: block;
}

.messages-module .avatar-initials {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e293b;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--avatar-size, 48px) / 2.5);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.messages-module .messages-online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
    animation: messages-online-pulse 2s infinite;
}

/* Status Indicator Dots (Before Avatar) */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 0.125rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.status-online {
    background-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-offline {
    background-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.1);
}

.conversation-item:hover .status-indicator {
    transform: scale(1.15);
}

@keyframes messages-online-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.messages-sidebar .conversation-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.375rem;
    margin-bottom: 0.125rem;
}

.messages-sidebar .conversation-name {
    font-size: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-sidebar .conversation-time {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.messages-module .conversation-role {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin-bottom: 0.1875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-module .conversation-context {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.4rem;
    border-radius: 999px;
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
}

.messages-module .conversation-snippet {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    line-height: 1.3;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.125rem;
}

.messages-module .conversation-snippet i {
    color: var(--text-secondary);
}

.messages-module .conversation-snippet em {
    font-style: normal;
    color: var(--text-secondary);
}

.messages-module .conversation-item.unread .conversation-name {
    color: var(--text-primary);
    font-weight: 600;
}

.messages-module .conversation-item.unread .conversation-snippet {
    color: var(--text-primary);
    font-weight: 500;
}

.messages-module .conversation-unread-count {
    align-self: flex-start;
    font-size: 0.6875rem;
    padding: 0.125rem 0.4rem;
    min-width: 20px;
    text-align: center;
}

.messages-module .unarchive-conversation-btn {
    align-self: flex-start;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

.messages-module .unarchive-conversation-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.messages-content .conversation-name {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.messages-content .conversation-time {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.messages-module .messages-selected-recipient .card {
    border-radius: 12px;
}

.messages-module .messages-selected-recipient img {
    border: 2px solid #e5e7eb;
}

.messages-module .btn-group .btn-outline-primary {
    border-color: #e2e8f0;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.75rem;
    background-color: #ffffff;
    padding: 0.375rem 0.625rem;
}

.messages-module .btn-group .btn-outline-primary.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.messages-module .btn-group .btn-outline-primary:not(.active):hover {
    color: var(--text-primary);
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.messages-module .badge {
    font-weight: 500;
    font-size: 0.6875rem;
    letter-spacing: 0.01em;
}

.messages-module .conversations-container,
.messages-module #freelancerSearchResults {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.messages-module .conversations-container::-webkit-scrollbar,
.messages-module #freelancerSearchResults::-webkit-scrollbar {
    width: 8px;
}

.messages-module .conversations-container::-webkit-scrollbar-thumb,
.messages-module #freelancerSearchResults::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 12px;
}

.messages-module .conversations-container::-webkit-scrollbar-thumb:hover,
.messages-module #freelancerSearchResults::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.messages-module .card {
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s ease;
}

.messages-module .card:hover {
    border-color: #d1d5db;
}

.messages-module .card-body {
    padding: 1.5rem;
}

.messages-module .spinner-border-sm {
    width: 1.1rem;
    height: 1.1rem;
    border-width: 0.15em;
}

/* ============================================
   MESSAGE BUBBLES & CONVERSATION DISPLAY
   ============================================ */

.messages-container {
    padding: 1.25rem;
    background: #fafbfc;
}

.message-bubble {
    position: relative;
    max-width: 75%;
    animation: messageSlideIn 0.2s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-bubble .message-content {
    font-size: 0.8125rem;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message-bubble.sent .message-content {
    background: var(--primary-blue) !important;
    color: #ffffff !important;
    border-bottom-right-radius: 4px !important;
}

.message-bubble.received .message-content {
    background: #ffffff !important;
    color: var(--text-primary) !important;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px !important;
}

.message-bubble .avatar-wrapper {
    width: 26px;
    height: 26px;
}

.message-bubble .avatar-image,
.message-bubble .avatar-initials {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
}

.message-bubble strong {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.message-timestamp {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.message-bubble.sent .message-timestamp {
    text-align: right;
}

.message-bubble.received .message-timestamp {
    text-align: left;
}

/* Message Attachments */
.message-attachment {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.message-bubble.received .message-attachment {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.message-attachment:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
}

.message-bubble.received .message-attachment:hover {
    background: #f3f4f6;
}

.message-attachment-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.875rem;
}

.message-bubble.received .message-attachment-icon {
    background: #e5e7eb;
    color: var(--primary-blue);
}

.message-attachment-info {
    flex: 1;
    min-width: 0;
}

.message-attachment-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: inherit;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.1rem;
}

.message-attachment-size {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Empty States */
.messages-empty {
    padding: 2.5rem 1.5rem;
}

.messages-empty-icon {
    font-size: 2.5rem;
    color: #d1d5db;
    opacity: 0.5;
    display: block;
    margin-bottom: 0.75rem;
}

.messages-empty-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.messages-empty-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.messages-search-empty {
    padding: 1.5rem 1rem;
}

.messages-search-empty-icon {
    font-size: 1.75rem;
    display: block;
}

.messages-search-empty-text {
    font-size: 0.75rem;
    margin-top: 0.375rem;
}

/* Message Input Area */
.messages-module .card-footer {
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.messages-module #messageTextarea {
    font-size: 0.8125rem;
    line-height: 1.5;
    resize: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.messages-module #messageTextarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
    background: #ffffff;
}

.messages-module #messageTextarea::placeholder {
    color: #9ca3af;
    font-size: 0.8125rem;
}

.messages-module .card-footer .btn {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.messages-module .card-footer .btn-light {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: var(--text-secondary);
}

.messages-module .card-footer .btn-light:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: var(--text-primary);
}

.messages-module .card-footer .btn-primary {
    padding: 0.5rem 1.25rem;
    box-shadow: 0 1px 2px rgba(26, 54, 93, 0.1);
}

.messages-module .card-footer .btn-primary:hover {
    box-shadow: 0 2px 4px rgba(26, 54, 93, 0.15);
}

/* Attachment Preview in Input */
#attachmentPreview {
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

#attachmentPreview .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid #e5e7eb;
}

#attachmentPreview .btn-close {
    font-size: 0.6rem;
    padding: 0;
    margin-left: 0.5rem;
}

/* Conversation Header */
.messages-module .card-header {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.messages-module .card-header .conversation-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.0625rem;
    line-height: 1.2;
}

.messages-module .card-header .conversation-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.125rem;
    line-height: 1.2;
}

.messages-module .card-header .conversation-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.messages-module .card-header .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.65rem;
    font-weight: 500;
}

.messages-module .card-header .btn-sm {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
}

.messages-module .card-header .dropdown-menu {
    font-size: 0.8125rem;
    min-width: 180px;
}

.messages-module .card-header .dropdown-item {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
}

.messages-module .card-header .dropdown-item i {
    font-size: 0.75rem;
    width: 18px;
}

/* Read Receipts */
.message-read-indicator {
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.message-read-indicator.read {
    color: var(--primary-blue);
}

.message-read-indicator.unread {
    color: var(--text-muted);
}

@media (max-width: 1199px) {
    .messages-layout {
        height: calc(100vh - 96px);
    }
}

@media (max-width: 991px) {
    .messages-layout {
        height: auto;
        min-height: 0;
    }

    .messages-topbar {
        padding: 0.625rem 1rem 0.375rem 0.5rem; /* Maintain reduced left padding on mobile */
    }

    .messages-sidebar {
        border-right: none;
    }

    .messages-content {
        background-color: #ffffff;
    }

    .messages-title {
        font-size: 1.125rem;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .messages-container {
        padding: 1rem;
    }
}

.messages-search-result {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    cursor: pointer;
}

.messages-search-result:hover {
    background-color: #f9fafb;
    border-left-color: var(--primary-blue);
    transform: translateX(2px);
}

.messages-search-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    object-fit: cover;
    flex-shrink: 0;
}

.messages-search-body {
    flex: 1;
    min-width: 0;
}

.messages-search-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.0625rem;
    letter-spacing: -0.01em;
}

.messages-search-title {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.messages-search-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.messages-search-action {
    font-size: 0.6875rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.messages-search-profile {
    color: var(--primary-blue);
    background-color: transparent;
    border: none;
    font-size: 0.8125rem;
    padding: 0.25rem;
    border-radius: 50%;
    line-height: 1;
}

.messages-search-profile:hover,
.messages-search-profile:focus {
    color: var(--primary-blue-hover);
    background-color: rgba(59, 130, 246, 0.08);
}

.messages-search-result .messages-search-profile i {
    pointer-events: none;
}

@media (max-width: 767px) {
    .messages-search-result {
        padding: 0.4375rem 0.625rem;
    }

    .messages-search-avatar {
        width: 32px;
        height: 32px;
    }

    .messages-search-name {
        font-size: 0.75rem;
    }

    .messages-search-title {
        font-size: 0.6875rem;
    }

    .messages-search-action {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.5rem;
    }
}

/* ============================================================================
   PROFILE SETTINGS - UNIVERSAL STYLES
   ============================================================================ */

/* Page Header */
.page-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0;
}

/* Universal Form Styles */
.form-field {
    margin-bottom: 1rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--danger-red);
}

.form-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
}

.invalid-feedback {
    font-size: 0.8125rem;
    color: var(--danger-red);
    margin-top: 0.25rem;
    display: block;
}

/* Profile Settings Cards */
.settings-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-medium);
    margin-bottom: 1.5rem;
}

.settings-card-body {
    padding: 1.5rem;
}

/* Profile Image Display */
.current-image-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.current-profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

/* Payment Methods List */
.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method-item {
    padding: 1.25rem;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.payment-method-item:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.payment-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.payment-brand {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-number {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Security Tips Box */
.security-tips {
    padding: 1.25rem;
    background: var(--background-light);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-blue);
}

.tips-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.tips-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.tips-list li {
    margin-bottom: 0.5rem;
}

/* Form Checkboxes/Radios */
.form-check {
    margin-bottom: 0.75rem;
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-left: 0.5rem;
}

/* Button Styles in Forms */
.btn {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    transition: var(--transition);
}

.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
}

.btn-outline-danger {
    color: var(--danger-red);
    border-color: var(--danger-red);
}

.btn-outline-danger:hover {
    background-color: var(--danger-red);
    color: white;
}

/* Responsive Grid for Forms */
.form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-row-full {
    grid-column: 1 / -1;
}

/* ============================================================================
   END PROFILE SETTINGS STYLES
   ============================================================================ */

/* Responsive Adjustments */
@media (max-width: 768px) {
    .milestone-info-grid {
        grid-template-columns: 1fr;
    }

    .review-actions-grid {
        grid-template-columns: 1fr;
    }

    .deliverable-files-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
    }
}

/* ============================================================================
   PROFESSIONAL DASHBOARD SIDEBAR - UNIVERSAL STYLES
   Used by both Client & Freelancer dashboards for consistent navigation
   ============================================================================ */

/* Premium International Marketplace Sidebar */
.professional-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: linear-gradient(180deg, #0a0a0a 0%, #111111 30%, #0d0d0d 70%, #080808 100%);
    color: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.3), 4px 0 20px rgba(0, 0, 0, 0.2);
    border-right: 1px solid #1a1a1a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.professional-sidebar::-webkit-scrollbar {
    width: 6px;
}

.professional-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.professional-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.professional-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Profile Section */
.professional-sidebar .sidebar-profile {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, #00D4AA 0%, #1DD1A1 50%, #14B8A6 100%);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.professional-sidebar .sidebar-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.professional-sidebar .sidebar-profile::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.professional-sidebar .profile-avatar {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.professional-sidebar .avatar-img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(255, 255, 255, 0.1) inset;
}

.professional-sidebar .avatar-img:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(255, 255, 255, 0.15) inset;
}

.professional-sidebar .status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.professional-sidebar .status-indicator.online {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    animation: onlinePulse 2s infinite;
}

@keyframes onlinePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.professional-sidebar .profile-info {
    text-align: center;
}

.professional-sidebar .profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.75rem;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
    position: relative;
}

.professional-sidebar .profile-status {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.professional-sidebar .status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    position: relative;
}

.professional-sidebar .status-badge.freelancer {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.professional-sidebar .status-badge.client {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.professional-sidebar .availability-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
    position: relative;
}

/* Navigation Styles */
.professional-sidebar .sidebar-nav {
    padding: 1.5rem 0 2rem;
}

.professional-sidebar .nav-section {
    margin-bottom: 2rem;
    padding: 0 1.5rem;
}

.professional-sidebar .nav-section:last-child {
    margin-bottom: 1rem;
}

.professional-sidebar .nav-section-header {
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.professional-sidebar .section-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6B7280;
    position: relative;
}

.professional-sidebar .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #00D4AA, #1DD1A1);
    border-radius: 1px;
}

.professional-sidebar .nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.professional-sidebar .nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #D1D5DB;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid transparent;
    margin: 0.125rem 0;
    overflow: hidden;
}

.professional-sidebar .nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #00D4AA, #1DD1A1);
    transition: width 0.3s ease;
    z-index: 1;
}

.professional-sidebar .nav-item:hover {
    background: rgba(0, 212, 170, 0.12);
    color: #ffffff;
    transform: translateX(4px);
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 4px 25px rgba(0, 212, 170, 0.2);
    text-decoration: none;
}

.professional-sidebar .nav-item:hover::before {
    width: 4px;
}

.professional-sidebar .nav-item.active {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(29, 209, 161, 0.15));
    color: #ffffff;
    border-color: rgba(0, 212, 170, 0.4);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.professional-sidebar .nav-item.active::before {
    width: 4px;
}

.professional-sidebar .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    margin-right: 0.875rem;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.professional-sidebar .nav-icon i {
    font-size: 1.1rem;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.professional-sidebar .nav-item:hover .nav-icon i {
    opacity: 1;
    transform: scale(1.1);
    color: #00D4AA;
}

.professional-sidebar .nav-item.active .nav-icon i {
    opacity: 1;
    color: #00D4AA;
    text-shadow: 0 0 8px rgba(0, 212, 170, 0.3);
}

.professional-sidebar .nav-text {
    flex-grow: 1;
    font-weight: 500;
    letter-spacing: -0.025em;
    z-index: 2;
    position: relative;
}

.professional-sidebar .nav-badge {
    margin-left: auto;
    padding: 0.375rem 0.625rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: auto;
    z-index: 2;
    position: relative;
}

.professional-sidebar .credits-badge {
    background: linear-gradient(135deg, #FF6B6B, #EE5A52);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.professional-sidebar .active-badge {
    background: linear-gradient(135deg, #00D4AA, #1DD1A1);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.professional-sidebar .insights-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}

/* Sub-navigation Styles */
.professional-sidebar .nav-item-wrapper {
    position: relative;
}

.professional-sidebar .nav-toggle-icon {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

.professional-sidebar .nav-toggle-icon.rotated {
    transform: rotate(90deg);
    color: #00D4AA;
}

.professional-sidebar .nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.professional-sidebar .nav-submenu.is-open {
    max-height: 500px;
    opacity: 1;
}

.professional-sidebar .nav-sublink {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    margin: 0.125rem 0;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    background: rgba(255, 255, 255, 0.02);
}

.professional-sidebar .nav-sublink:hover {
    color: #ffffff;
    background: rgba(0, 212, 170, 0.1);
    border-left-color: #00D4AA;
    transform: translateX(5px);
}

.professional-sidebar .nav-sublink.active {
    color: #00D4AA;
    background: rgba(0, 212, 170, 0.15);
    border-left-color: #00D4AA;
    font-weight: 500;
}

.professional-sidebar .nav-sublink i {
    width: 16px;
    margin-right: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.professional-sidebar .nav-sublink.active i {
    opacity: 1;
    color: #00D4AA;
}

.professional-sidebar .nav-sublink.text-danger {
    color: rgba(239, 68, 68, 0.8);
}

.professional-sidebar .nav-sublink.text-danger:hover,
.professional-sidebar .nav-sublink.text-danger.active {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .professional-sidebar {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .professional-sidebar {
        position: fixed;
        left: -280px;
        width: 280px;
        transition: left 0.3s ease;
        z-index: 1050;
    }
    
    .professional-sidebar.show {
        left: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

/* Animation and Micro-interactions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.professional-sidebar .nav-section {
    animation: slideIn 0.5s ease-out;
}

.professional-sidebar .nav-section:nth-child(2) {
    animation-delay: 0.1s;
}

.professional-sidebar .nav-section:nth-child(3) {
    animation-delay: 0.2s;
}

.professional-sidebar .nav-section:nth-child(4) {
    animation-delay: 0.3s;
}

.professional-sidebar .nav-section:nth-child(5) {
    animation-delay: 0.4s;
}

/* Focus States for Accessibility */
.professional-sidebar .nav-item:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.professional-sidebar .nav-item:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .professional-sidebar {
        background: #000000;
        border-right: 2px solid #ffffff;
    }
    
    .professional-sidebar .nav-item {
        border: 1px solid #ffffff;
    }
    
    .professional-sidebar .nav-item.active {
        background: #ffffff;
        color: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .professional-sidebar .nav-item,
    .professional-sidebar .avatar-img,
    .professional-sidebar .status-indicator {
        transition: none;
    }
    
    .professional-sidebar .nav-section {
        animation: none;
    }
}

/* ============================================================================
   END PROFESSIONAL DASHBOARD SIDEBAR STYLES
   ============================================================================ */

