/**
 * Influencer Marketplace Frontend Styles
 */

/* Dashboard Styles */
.imp-dashboard, .imp-influencer-dashboard, .imp-brand-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dashboard-header h1, .dashboard-header h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 600;
}

/* Header Content Layout */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-role-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.user-role-badge.influencer {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
}

.user-role-badge.brand {
    background: linear-gradient(45deg, #5f27cd, #a55eea);
}

/* Logout Button */
.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logout-btn i {
    font-size: 14px;
}

/* Quick Actions */
.quick-actions, .quick-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: none; /* Hidden by default, shown on mobile */
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #666;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
}

.mobile-nav-item.active {
    color: #007cba;
    background: rgba(0, 123, 186, 0.1);
}

.mobile-nav-item i {
    font-size: 18px;
    margin-bottom: 4px;
}

.mobile-nav-item span {
    font-size: 12px;
    font-weight: 500;
}

/* Viewport Meta Prevention */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

/* Prevent Zoom */
input, select, textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Enable mobile navigation */
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Add bottom padding to content to account for nav */
    .imp-dashboard, .imp-influencer-dashboard, .imp-brand-dashboard {
        padding-bottom: 80px;
    }
    
    /* Hide desktop navigation on mobile */
    .dashboard-nav {
        display: none;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .quick-actions, .quick-stats {
        width: 100%;
        justify-content: center;
    }
    
    /* Responsive cards */
    .overview-cards, .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Tab content adjustments */
    .tab-content {
        padding: 15px;
    }
    
    /* Form responsiveness */
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    /* Button adjustments */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Table responsiveness */
    .wp-list-table {
        font-size: 14px;
    }
    
    .wp-list-table th,
    .wp-list-table td {
        padding: 8px 4px;
    }
    
    /* Jobs grid mobile */
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    /* Applications mobile */
    .application-card {
        padding: 15px;
    }
    
    /* Content grid mobile */
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    /* Earnings cards mobile */
    .earnings-cards {
        grid-template-columns: 1fr;
    }
    
    /* Modal adjustments */
    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .imp-dashboard, .imp-influencer-dashboard, .imp-brand-dashboard {
        padding: 10px;
    }
    
    .dashboard-header {
        padding: 20px 15px;
    }
    
    .dashboard-header h1 {
        font-size: 24px;
    }
    
    .mobile-nav-item {
        min-width: 50px;
        padding: 6px 8px;
    }
    
    .mobile-nav-item i {
        font-size: 16px;
    }
    
    .mobile-nav-item span {
        font-size: 11px;
    }
    
    /* Compact forms */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 12px;
    }
}

/* Touch-friendly elements */
@media (hover: none) and (pointer: coarse) {
    .btn, .mobile-nav-item, .tab-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-tabs a {
        padding: 12px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* PWA-style app appearance */
.imp-dashboard, .imp-influencer-dashboard, .imp-brand-dashboard {
    min-height: 100vh;
    background: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dashboard Header Styling */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.user-role-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.user-role-badge.influencer {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
}

.user-role-badge.brand {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

/* Navigation Tabs */
.dashboard-nav {
    background: white;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-tabs {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.nav-tabs a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-tabs a:hover {
    background: #f8f9fa;
    color: #007cba;
}

.nav-tabs a.active {
    background: linear-gradient(135deg, #007cba, #0056b3);
    color: white;
    box-shadow: 0 2px 8px rgba(0,123,186,0.3);
}

/* Tab Content */
.tab-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 400px;
}

.tab-content.active {
    display: block;
}

.tab-content:not(.active) {
    display: none;
}

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

.stat-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    color: #007cba;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Section Headers */
.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.section-header p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.loading::before {
    content: "⏳";
    display: block;
    font-size: 2em;
    margin-bottom: 10px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 3em;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #999;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Job Cards */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.job-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #007cba;
}

.job-card.premium {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.job-card.premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-top: 30px solid #ffd700;
}

.job-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.job-category {
    background: #f8f9fa;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.job-budget {
    color: #28a745;
    font-weight: 700;
    font-size: 16px;
}

.job-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 14px;
}

.job-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.job-tag {
    background: #e9ecef;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.job-tag.premium {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
    font-weight: 600;
}

.job-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f8f9fa;
}

.job-actions small {
    color: #999;
    font-size: 12px;
}

.apply-job-btn {
    background: linear-gradient(135deg, #007cba, #0056b3);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-job-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,186,0.3);
}

.no-jobs {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-style: italic;
}

.no-jobs::before {
    content: "📋";
    display: block;
    font-size: 3em;
    margin-bottom: 15px;
}

/* Influencer Cards */
.influencers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.influencer-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.influencer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #007cba;
}

.influencer-avatar {
    text-align: center;
    margin-bottom: 15px;
}

.influencer-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}

.influencer-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
}

.influencer-bio {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: center;
}

.social-stats {
    margin-bottom: 15px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.social-item i {
    width: 20px;
    color: #666;
}

.social-item span {
    font-weight: 500;
    color: #333;
}

.social-item small {
    color: #999;
    margin-left: auto;
}

.influencer-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.contact-influencer, .view-portfolio {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-influencer {
    background: linear-gradient(135deg, #007cba, #0056b3);
    color: white;
    border: none;
}

.contact-influencer:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
}

.view-portfolio {
    background: transparent;
    color: #007cba;
    border: 1px solid #007cba;
}

.view-portfolio:hover {
    background: #007cba;
    color: white;
}

.no-influencers {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-style: italic;
}

.no-influencers::before {
    content: "👥";
    display: block;
    font-size: 3em;
    margin-bottom: 15px;
}

/* iOS-style safe areas */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .imp-dashboard, .imp-influencer-dashboard, .imp-brand-dashboard {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* Android-style navigation */
@media (max-width: 768px) and (orientation: portrait) {
    .mobile-nav-items {
        padding: 0 env(safe-area-inset-left, 10px) 0 env(safe-area-inset-right, 10px);
    }
}

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

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #667eea;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-sublabel {
    font-size: 12px;
    color: #888;
}

/* Navigation Tabs */
.dashboard-nav {
    margin-bottom: 20px;
}

.nav-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e1e1e1;
    flex-wrap: wrap;
}

.nav-tabs li {
    margin-right: 2px;
}

.nav-tabs a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
}

.nav-tabs a:hover,
.nav-tabs a.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.nav-tabs a.training-required {
    background: #ff6b6b;
    color: white;
    animation: pulse 2s infinite;
}

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

/* Tab Content */
.dashboard-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

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

/* Jobs Listing */
.imp-jobs-listing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.jobs-filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.job-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.job-card.premium {
    border-left: 4px solid #ffd700;
    background: linear-gradient(135deg, #fff9c4 0%, #fff 100%);
}

.job-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.job-budget {
    font-weight: 600;
    color: #667eea;
}

.job-description {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.job-tag {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

.job-tag.premium {
    background: #ffd700;
    color: #333;
}

.job-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Forms */
.imp-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    transition: border-color 0.3s ease;
}

.file-upload-area:hover {
    border-color: #667eea;
}

.file-upload-area.dragover {
    border-color: #667eea;
    background: #f0f4ff;
}

/* Profile Card */
.profile-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-title {
    color: #666;
    margin-bottom: 15px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-number {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
}

.profile-stat-label {
    font-size: 12px;
    color: #666;
}

.profile-badges {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-verified {
    background: #28a745;
    color: white;
}

.badge-premium {
    background: #ffd700;
    color: #333;
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.social-link {
    display: inline-block;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 35px;
    text-decoration: none;
}

.social-link.instagram { background: #E4405F; }
.social-link.twitter { background: #1DA1F2; }
.social-link.youtube { background: #FF0000; }
.social-link.tiktok { background: #000; }
.social-link.facebook { background: #1877F2; }

/* Messages */
.imp-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.imp-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.imp-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.imp-message.info {
    background: #cce7ff;
    border: 1px solid #99d3ff;
    color: #004085;
}

.imp-message.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

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

/* Rating Stars */
.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.rating-star {
    color: #ddd;
    font-size: 16px;
}

.rating-star.filled {
    color: #ffc107;
}

/* Responsive */
@media (max-width: 768px) {
    .imp-dashboard {
        padding: 10px;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .nav-tabs li {
        margin-right: 0;
        margin-bottom: 2px;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .job-actions {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Upload Progress Modal */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.upload-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.upload-modal h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.upload-modal .progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.upload-modal .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.upload-modal .upload-status {
    margin: 15px 0 0 0;
    color: #666;
    font-size: 14px;
}

/* Loading Dots Animation */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 10px 0;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: loadingDots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Auth Success */
.auth-success {
    text-align: center;
    padding: 40px 20px;
}

.auth-success .success-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 20px;
}

.auth-success h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.auth-success p {
    color: #666;
    margin-bottom: 15px;
}

/* Field Validation Styles */
.field-feedback {
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
}

.field-feedback.success {
    color: #28a745;
}

.field-feedback.error {
    color: #dc3545;
}

.password-strength {
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
}

.password-strength.weak {
    color: #dc3545;
}

.password-strength.medium {
    color: #ffc107;
}

.password-strength.strong {
    color: #28a745;
}

/* Form Input Error State */
input.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

input.success {
    border-color: #28a745 !important;
    background-color: #f0fff4;
}

/* Jobs Grid Styles */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.job-card {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.job-card.premium {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.premium-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.job-header {
    margin-bottom: 15px;
}

.job-title {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.job-category {
    display: inline-block;
    background: #f0f2f5;
    color: #666;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.job-content {
    margin-bottom: 15px;
}

.job-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
}

.job-budget {
    font-weight: 600;
    color: #27ae60;
}

.job-type {
    color: #667eea;
}

.job-date {
    color: #999;
}

.job-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.requirement {
    background: #e8f2ff;
    color: #0066cc;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.job-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.job-actions .btn {
    flex: 1;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.no-jobs {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Modal Styles */
.imp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #666;
}

.modal-body {
    padding: 25px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-body label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* Applications & Earnings Tables */
.payment-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table-header {
    background: #f8f9fa;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    gap: 15px;
    padding: 15px;
    font-weight: 600;
    color: #333;
    border-radius: 8px 8px 0 0;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.table-row:hover {
    background: #f9f9f9;
}

.table-row.paid {
    background: #f0fff4;
}

.table-row.pending {
    background: #fff8dc;
}

.table-row.rejected {
    background: #fff5f5;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.paid {
    background: #d1f2eb;
    color: #0c5460;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.content-item {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.content-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.content-item img,
.content-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.content-item:hover .content-overlay {
    opacity: 1;
}

.content-overlay h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.content-overlay p {
    margin: 0 0 10px 0;
    font-size: 12px;
    opacity: 0.9;
}

.content-actions {
    display: flex;
    gap: 8px;
}

.content-actions .btn {
    padding: 6px 10px;
    font-size: 11px;
}

.upload-date {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.no-content,
.no-payments {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .job-actions {
        flex-direction: column;
    }
    
    .job-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}
