/**
 * OpenSim Marketplace Bridge - Marketplace Styles
 * Custom marketplace dashboard and frontend styles
 */

/* Vendor Dashboard Styles */
.osmb-vendor-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.osmb-dashboard-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.osmb-dashboard-header h3 {
    margin: 0 0 10px 0;
    font-size: 2em;
    font-weight: 300;
}

.osmb-last-updated {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Dashboard Stats */
.osmb-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.osmb-stat-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e1e8ed;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.osmb-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.osmb-stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #0073aa;
    line-height: 1;
    margin-bottom: 8px;
}

.osmb-stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Dashboard Sections */
.osmb-dashboard-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e1e8ed;
}

.osmb-dashboard-section h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.4em;
    font-weight: 600;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.osmb-section-description {
    color: #666;
    margin-bottom: 25px;
    font-style: italic;
}

/* Empty States */
.osmb-empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f9f9f9;
    border-radius: 6px;
    border: 2px dashed #ddd;
}

.osmb-empty-state p {
    margin: 10px 0;
}

/* Server Grid */
.osmb-servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.osmb-server-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    transition: border-color 0.2s ease;
}

.osmb-server-card:hover {
    border-color: #0073aa;
}

.osmb-server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.osmb-server-header h5 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
}

.osmb-server-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
}

.osmb-server-details strong {
    color: #333;
}

/* Status Badges */
.osmb-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    display: inline-block;
}

.osmb-status-online {
    background: #d4edda;
    color: #155724;
}

.osmb-status-offline {
    background: #f8d7da;
    color: #721c24;
}

.osmb-status-error {
    background: #fff3cd;
    color: #856404;
}

.osmb-status-initializing {
    background: #cce7ff;
    color: #0056b3;
}

/* Product Status */
.osmb-product-status.osmb-status-publish {
    background: #d4edda;
    color: #155724;
}

.osmb-product-status.osmb-status-draft {
    background: #e2e3e5;
    color: #495057;
}

/* Products Table */
.osmb-products-table {
    overflow-x: auto;
}

.osmb-products-table table {
    width: 100%;
    border-collapse: collapse;
}

.osmb-products-table th,
.osmb-products-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.osmb-products-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.osmb-products-table td {
    vertical-align: middle;
}

.osmb-products-table .button {
    margin-right: 5px;
    font-size: 12px;
    padding: 6px 10px;
}

/* Pending Items */
.osmb-pending-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.osmb-pending-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.osmb-pending-item:hover {
    border-color: #0073aa;
    background: #ffffff;
}

.osmb-item-info h5 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1em;
}

.osmb-item-type {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 8px;
}

.osmb-item-server {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Forms */
.osmb-become-vendor,
.osmb-create-listing {
    max-width: 800px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.osmb-become-vendor h3,
.osmb-create-listing h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 1.6em;
}

.osmb-avatar-info {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid #0073aa;
}

.osmb-form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.osmb-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.osmb-form-section h4 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 1.2em;
}

.osmb-item-preview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.osmb-item-preview p {
    margin: 10px 0;
    font-size: 14px;
}

.osmb-item-preview strong {
    color: #495057;
}

.osmb-item-preview code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* Form Fields */
.osmb-create-listing label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.osmb-create-listing input[type="text"],
.osmb-create-listing input[type="number"],
.osmb-create-listing textarea,
.osmb-create-listing select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.osmb-create-listing input[type="text"]:focus,
.osmb-create-listing input[type="number"]:focus,
.osmb-create-listing textarea:focus,
.osmb-create-listing select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.25);
    outline: none;
}

.osmb-create-listing .description {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
    display: block;
}

.required {
    color: #dc3545;
}

.osmb-form-submit {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.osmb-form-submit .button {
    margin-right: 10px;
}

/* Marketplace Home */
.osmb-marketplace-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.osmb-hero-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin-bottom: 50px;
}

.osmb-hero-section h1 {
    font-size: 3em;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 300;
}

.osmb-hero-description {
    font-size: 1.2em;
    color: #666;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Vendors Section */
.osmb-vendors-section,
.osmb-products-section {
    margin-bottom: 50px;
}

.osmb-vendors-section h2,
.osmb-products-section h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.osmb-vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.osmb-vendor-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e1e8ed;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.osmb-vendor-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.osmb-vendor-card h3 a {
    color: #0073aa;
    text-decoration: none;
}

.osmb-vendor-card h3 a:hover {
    text-decoration: underline;
}

.osmb-vendor-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.osmb-vendor-stats {
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Products Grid */
.osmb-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.osmb-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e1e8ed;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.osmb-product-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.osmb-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.osmb-product-card:hover .osmb-product-image img {
    transform: scale(1.05);
}

.osmb-no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #adb5bd;
}

.osmb-no-image .dashicons {
    font-size: 48px;
}

.osmb-product-info {
    padding: 20px;
}

.osmb-product-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.osmb-product-info h3 a {
    color: #333;
    text-decoration: none;
}

.osmb-product-info h3 a:hover {
    color: #0073aa;
}

.osmb-product-vendor {
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
}

.osmb-product-price {
    font-size: 1.1em;
    font-weight: 600;
    color: #0073aa;
}

/* CTA Section */
.osmb-cta-section {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 50px;
}

.osmb-cta-section h2 {
    font-size: 2em;
    margin: 0 0 15px 0;
    font-weight: 300;
}

.osmb-cta-section p {
    font-size: 1.1em;
    margin: 0 0 25px 0;
    opacity: 0.9;
}

.osmb-cta-section .button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .osmb-dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .osmb-servers-grid,
    .osmb-pending-items {
        grid-template-columns: 1fr;
    }
    
    .osmb-pending-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .osmb-products-table {
        font-size: 14px;
    }
    
    .osmb-products-table th,
    .osmb-products-table td {
        padding: 8px;
    }
    
    .osmb-hero-section h1 {
        font-size: 2.2em;
    }
    
    .osmb-hero-description {
        font-size: 1.1em;
    }
    
    .osmb-vendors-grid,
    .osmb-products-grid {
        grid-template-columns: 1fr;
    }
    
    .osmb-dashboard-header {
        padding: 20px;
    }
    
    .osmb-dashboard-section {
        padding: 20px;
    }
    
    .osmb-become-vendor,
    .osmb-create-listing {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .osmb-stat-number {
        font-size: 2em;
    }
    
    .osmb-server-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .osmb-hero-section {
        padding: 40px 20px;
    }
    
    .osmb-hero-section h1 {
        font-size: 1.8em;
    }
    
    .osmb-cta-section {
        padding: 30px 20px;
    }
}

/* Loading States */
.osmb-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.osmb-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: osmb-spin 1s linear infinite;
}

@keyframes osmb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.osmb-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
}

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

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

.osmb-message.info {
    background: #cce7ff;
    color: #0056b3;
    border: 1px solid #b3d7ff;
}

/* Animations */
.osmb-fade-in {
    animation: osmb-fadeIn 0.3s ease-in;
}

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

.osmb-slide-up {
    animation: osmb-slideUp 0.3s ease-out;
}

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

/* Utility Classes */
.osmb-text-center { text-align: center; }
.osmb-text-left { text-align: left; }
.osmb-text-right { text-align: right; }

.osmb-mb-10 { margin-bottom: 10px; }
.osmb-mb-20 { margin-bottom: 20px; }
.osmb-mb-30 { margin-bottom: 30px; }

.osmb-mt-10 { margin-top: 10px; }
.osmb-mt-20 { margin-top: 20px; }
.osmb-mt-30 { margin-top: 30px; }

.osmb-hidden { display: none; }
.osmb-visible { display: block; }

/**
 * OpenSim Marketplace v1.1.0 Enhanced Styles
 */

/* Vendor Dashboard Full Page */
.osmb-vendor-dashboard-page {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.osmb-vendor-dashboard-full {
    max-width: 100%;
    margin: 0;
}

/* Dashboard Hero */
.osmb-dashboard-hero {
    background-size: cover;
    background-position: center;
    background-color: #0073aa;
    min-height: 350px;
    position: relative;
    margin-bottom: 0;
}

.osmb-hero-overlay {
    background: linear-gradient(135deg, rgba(0,115,170,0.9) 0%, rgba(0,90,135,0.9) 100%);
    padding: 80px 20px;
    color: #fff;
    text-align: center;
}

.osmb-hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.osmb-hero-content h1 {
    font-size: 3em;
    margin: 0 0 15px 0;
    color: #fff;
    font-weight: 300;
}

.osmb-hero-tagline {
    font-size: 1.3em;
    margin: 0 0 30px 0;
    opacity: 0.95;
}

.osmb-hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Dashboard Tabs */
.osmb-dashboard-tabs {
    background: #fff;
    border-bottom: 2px solid #e9ecef;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.osmb-tab-btn {
    background: none;
    border: none;
    padding: 18px 25px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.osmb-tab-btn:hover {
    color: #0073aa;
    background: #f8f9fa;
}

.osmb-tab-btn.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.osmb-tab-btn .osmb-badge {
    background: #dc3545;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
    font-weight: 600;
}

/* Tab Content */
.osmb-dashboard-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.osmb-tab-content {
    display: none;
}

.osmb-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

.osmb-stat-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.osmb-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.osmb-stat-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.osmb-stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #0073aa;
    line-height: 1;
    margin-bottom: 8px;
}

.osmb-stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Section Styling */
.osmb-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.osmb-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 12px;
}

/* Tables */
.osmb-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.osmb-table thead {
    background: #f8f9fa;
}

.osmb-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
}

.osmb-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.osmb-table tr:hover {
    background: #f8f9fa;
}

/* Product Actions */
.osmb-product-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.osmb-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.osmb-product-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.osmb-product-info div {
    display: flex;
    flex-direction: column;
}

.osmb-product-info small {
    color: #999;
    font-size: 12px;
}

/* Sales Stats */
.osmb-sales-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.osmb-stat-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.osmb-stat-box h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.osmb-big-number {
    font-size: 2.2em;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 5px;
}

.osmb-stat-box small {
    color: #999;
    font-size: 13px;
}

/* Date Range Selector */
.osmb-date-range {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.osmb-date-range label {
    font-weight: 600;
    color: #495057;
}

.osmb-date-range select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

/* Servers Grid */
.osmb-servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.osmb-server-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: border-color 0.2s ease;
}

.osmb-server-card:hover {
    border-color: #0073aa;
}

.osmb-server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.osmb-server-header h5 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
}

.osmb-server-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
}

/* Pending Items */
.osmb-pending-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.osmb-pending-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.osmb-pending-item:hover {
    border-color: #0073aa;
    background: #f8f9fa;
}

.osmb-item-info h5 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1em;
}

.osmb-item-type {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 500;
}

.osmb-item-server {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Status Badges */
.osmb-status-badge {
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
}

.osmb-status-online { background: #d4edda; color: #155724; }
.osmb-status-offline { background: #f8d7da; color: #721c24; }
.osmb-status-error { background: #fff3cd; color: #856404; }
.osmb-status-publish { background: #d4edda; color: #155724; }
.osmb-status-draft { background: #e2e3e5; color: #495057; }
.osmb-status-delivered { background: #d4edda; color: #155724; }
.osmb-status-failed { background: #f8d7da; color: #721c24; }
.osmb-status-pending { background: #fff3cd; color: #856404; }

/* Empty State */
.osmb-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.osmb-empty-state p {
    margin: 10px 0;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .osmb-hero-content h1 { font-size: 2.5em; }
    .osmb-stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (max-width: 768px) {
    .osmb-dashboard-hero { min-height: 250px; }
    .osmb-hero-overlay { padding: 50px 20px; }
    .osmb-hero-content h1 { font-size: 2em; }
    .osmb-hero-tagline { font-size: 1.1em; }
    .osmb-hero-actions { flex-direction: column; }
    
    .osmb-dashboard-tabs { 
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .osmb-tab-btn { padding: 15px 18px; font-size: 14px; }
    .osmb-stats-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .osmb-stat-card { padding: 20px; }
    .osmb-stat-number { font-size: 2em; }
    
    .osmb-servers-grid,
    .osmb-pending-items { grid-template-columns: 1fr; }
    
    .osmb-pending-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .osmb-product-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .osmb-product-actions .button {
        width: 100%;
        text-align: center;
    }
    
    .osmb-sales-stats { grid-template-columns: 1fr; }
    .osmb-date-range { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .osmb-dashboard-content { padding: 20px 15px; }
    .osmb-section { padding: 20px 15px; }
    .osmb-hero-content h1 { font-size: 1.6em; }
    .osmb-stats-grid { grid-template-columns: 1fr; }
    
    .osmb-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Vendor Agreement */
.osmb-vendor-agreement {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #0073aa;
}

.osmb-agreement-box {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-top: 15px;
}

.osmb-agreement-box ul {
    margin: 15px 0;
    padding-left: 30px;
}

.osmb-agreement-box li {
    margin: 10px 0;
    line-height: 1.6;
}

/* Image Uploads */
.osmb-image-uploads {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 10px 0;
}

.osmb-image-uploads input[type="file"] {
    padding: 10px;
    border: 2px dashed #ced4da;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.osmb-image-uploads input[type="file"]:hover {
    border-color: #0073aa;
}

.osmb-image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.osmb-image-preview {
    position: relative;
}

.osmb-image-preview img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Tag Selection */
.osmb-popular-tags {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.osmb-add-tag {
    margin: 5px;
    font-size: 12px;
    padding: 6px 12px;
}

/* Print Styles */
@media print {
    .osmb-dashboard-tabs,
    .osmb-hero-actions,
    .osmb-product-actions,
    .button { display: none !important; }
    
    .osmb-stat-card,
    .osmb-server-card { break-inside: avoid; }
}