/* Task Marketplace Styles */

/* Task Listings */
.lsm-task-listings {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.lsm-tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.lsm-tasks-header h1 {
    margin: 0;
    font-size: 32px;
}

/* Filters */
.lsm-tasks-filters {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.lsm-filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
}

.lsm-filter-col input,
.lsm-filter-col select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* Task Grid */
.lsm-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.lsm-task-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.lsm-task-card-header h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.lsm-task-card-header h3 a {
    color: #333;
    text-decoration: none;
}

.lsm-task-card-header h3 a:hover {
    color: #667eea;
}

.lsm-task-categories {
    margin-bottom: 15px;
}

.lsm-category-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.lsm-task-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.lsm-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.lsm-task-meta > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lsm-task-budget strong {
    color: #667eea;
    font-weight: 600;
}

.lsm-task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.lsm-task-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
}

.lsm-bid-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.lsm-payment-mode {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.lsm-payment-escrow {
    background: #e0f2fe;
    color: #0369a1;
}

.lsm-payment-direct_pay {
    background: #fef3c7;
    color: #92400e;
}

/* No Tasks */
.lsm-no-tasks {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
}

.lsm-no-tasks .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

/* Task Form */
.lsm-task-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.lsm-form-header {
    grid-column: 1 / -1;
}

.lsm-form-header h1 {
    margin: 0 0 10px 0;
}

.lsm-form-header p {
    color: #666;
    margin: 0;
}

.lsm-form-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.lsm-form-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.lsm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.lsm-form-row:last-child {
    margin-bottom: 0;
}

.lsm-form-group.full-width {
    grid-column: 1 / -1;
}

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

.lsm-form-group input[type="text"],
.lsm-form-group input[type="number"],
.lsm-form-group input[type="datetime-local"],
.lsm-form-group select,
.lsm-form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.lsm-form-group textarea {
    resize: vertical;
}

.lsm-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.lsm-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.lsm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lsm-checkbox-label input[type="checkbox"] {
    width: auto;
}

.lsm-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lsm-input-separator {
    font-weight: 600;
    color: #666;
}

.lsm-form-actions {
    text-align: center;
    margin-top: 30px;
}

.lsm-form-note {
    margin-top: 15px;
    color: #666;
    font-size: 13px;
}

/* Form Sidebar */
.lsm-form-sidebar {
    grid-column: 2;
    grid-row: 2 / -1;
}

.lsm-info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.lsm-info-box h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.lsm-info-box ul,
.lsm-info-box ol {
    margin: 0;
    padding-left: 20px;
}

.lsm-info-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Single Task */
.lsm-single-task {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.lsm-task-header-single {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.lsm-task-header-single h1 {
    margin: 0 0 15px 0;
    color: #fff;
}

.lsm-task-status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.lsm-task-meta-single {
    display: flex;
    gap: 25px;
    font-size: 14px;
}

.lsm-task-meta-single .dashicons {
    margin-right: 5px;
}

.lsm-task-content-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.lsm-task-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.lsm-task-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.lsm-task-description {
    line-height: 1.8;
    color: #444;
}

.lsm-task-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lsm-skill-badge {
    background: #667eea;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
}

/* Bids */
.lsm-bids-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lsm-bid-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.lsm-bid-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lsm-bid-status-accepted {
    border-color: #10b981;
    background: #f0fdf4;
}

.lsm-bid-status-rejected {
    border-color: #ef4444;
    background: #fef2f2;
    opacity: 0.6;
}

.lsm-bid-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.lsm-bidder-info {
    display: flex;
    gap: 15px;
}

.lsm-bidder-avatar img {
    border-radius: 50%;
}

.lsm-bidder-details h4 {
    margin: 0 0 5px 0;
}

.lsm-bidder-rating {
    font-size: 13px;
    color: #666;
}

.lsm-bid-amount {
    text-align: right;
}

.lsm-bid-amount {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.lsm-bid-amount small {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: normal;
    margin-top: 5px;
}

.lsm-bid-proposal {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.lsm-bid-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lsm-bid-actions {
    display: flex;
    gap: 10px;
}

.lsm-bid-status-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.lsm-bid-status-badge.lsm-status-accepted {
    background: #d1fae5;
    color: #065f46;
}

.lsm-bid-status-badge.lsm-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Sidebar */
.lsm-sidebar-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.lsm-sidebar-box h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.lsm-task-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lsm-task-detail-item:last-child {
    border-bottom: none;
}

.lsm-detail-label {
    color: #666;
    font-size: 13px;
}

.lsm-detail-value {
    font-weight: 600;
    color: #333;
}

.lsm-sidebar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lsm-category-link {
    background: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.lsm-category-link:hover {
    background: #667eea;
    color: #fff;
}

/* Dashboard */
.lsm-user-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.lsm-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.lsm-dashboard-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lsm-dashboard-user img {
    border-radius: 50%;
}

.lsm-user-info h3 {
    margin: 0;
    font-size: 18px;
}

.lsm-user-info span {
    color: #666;
    font-size: 14px;
}

.lsm-dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.lsm-tab {
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.lsm-tab:hover {
    color: #667eea;
}

.lsm-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

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

.lsm-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    gap: 15px;
}

.lsm-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.lsm-stat-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.lsm-stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.lsm-stat-label {
    color: #666;
    font-size: 13px;
}

.lsm-quick-actions-dashboard {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.lsm-tasks-list,
.lsm-bids-list-dashboard {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.lsm-task-item,
.lsm-bid-item {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
}

.lsm-task-item-header,
.lsm-bid-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.lsm-task-item h3,
.lsm-bid-item h3 {
    margin: 0;
    font-size: 16px;
}

.lsm-task-item-meta,
.lsm-bid-item-footer {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 13px;
}

.lsm-bid-amount-large {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

/* Status Badges */
.lsm-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.lsm-status-draft { background: #f3f4f6; color: #6b7280; }
.lsm-status-pending { background: #fef3c7; color: #92400e; }
.lsm-status-approved { background: #dbeafe; color: #1e40af; }
.lsm-status-active { background: #d1fae5; color: #065f46; }
.lsm-status-in_progress { background: #e0e7ff; color: #3730a3; }
.lsm-status-completed { background: #d1fae5; color: #065f46; }
.lsm-status-cancelled { background: #fee2e2; color: #991b1b; }

/* Responsive */
@media (max-width: 768px) {
    .lsm-task-form-container,
    .lsm-task-content-wrap {
        grid-template-columns: 1fr;
    }
    
    .lsm-filter-row {
        grid-template-columns: 1fr;
    }
    
    .lsm-tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .lsm-form-row {
        grid-template-columns: 1fr;
    }
    
    .lsm-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .lsm-dashboard-stats {
        grid-template-columns: 1fr;
    }
}
