/* Image Marketplace Frontend Styles */
.wpim-marketplace {
    margin: 20px 0;
}

.wpim-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.wpim-filters select, 
.wpim-filters input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

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

.wpim-image-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.wpim-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.wpim-image-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wpim-image-info {
    padding: 15px;
}

.wpim-image-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
}

.wpim-image-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.wpim-image-price {
    font-weight: bold;
    color: #2c7e3c;
    font-size: 16px;
}

.wpim-image-actions {
    display: flex;
    justify-content: space-between;
}

.wpim-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 14px;
}

.wpim-btn-primary {
    background: #0073aa;
    color: white;
}

.wpim-btn-secondary {
    background: #f7f7f7;
    color: #333;
    border: 1px solid #ccc;
}

.wpim-btn:hover {
    opacity: 0.9;
}

.wpim-pagination {
    text-align: center;
    margin: 20px 0;
}

.wpim-pagination a, 
.wpim-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #0073aa;
}

.wpim-pagination .current {
    background: #0073aa;
    color: white;
}

.wpim-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
}

.wpim-modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 5px;
    max-height: 90%;
    overflow-y: auto;
}

.wpim-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.wpim-license-options {
    margin: 15px 0;
}

.wpim-license-option {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.wpim-license-option input {
    margin-right: 10px;
}

.wpim-license-option label {
    font-weight: bold;
}

.wpim-license-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* User Dashboard Styles */
.wpim-user-dashboard {
    margin: 20px 0;
}

.wpim-user-dashboard h1 {
    margin-bottom: 20px;
}

.wpim-user-dashboard h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.wpim-stat-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.wpim-stat-card h3 {
    margin-top: 0;
    color: #666;
    font-size: 16px;
}

.wpim-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
}

.wpim-user-images {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wpim-image-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.wpim-image-table th, 
.wpim-image-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.wpim-image-table th {
    background: #f9f9f9;
    font-weight: bold;
}

.wpim-image-table tr:hover {
    background: #f5f5f5;
}