/* ===== Seller Dashboard - EloriaBloom Boho Theme ===== */

.dashboard-page {
    padding-top: 100px;
    padding-bottom: 60px;
}

.dashboard-header {
    margin-bottom: 24px;
}

.dashboard-header h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Seller Navigation */
.seller-nav {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    border: 1px solid var(--border);
    overflow-x: auto;
}

.seller-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.seller-nav-link:hover {
    color: var(--text-primary);
    background: rgba(200, 149, 108, 0.08);
}

.seller-nav-link.active {
    background: var(--bg-card);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.purple {
    background: rgba(200, 149, 108, 0.12);
    color: var(--accent);
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.stat-icon.green {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
}

.stat-icon.orange {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Dashboard Section */
.dashboard-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.dashboard-section-header h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table td {
    color: var(--text-primary);
}

.table tr:hover td {
    background: rgba(200, 149, 108, 0.04);
}

/* Product Management Card */
.seller-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.product-manage-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    transition: all var(--transition);
}

.product-manage-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.product-manage-image {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.product-manage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-manage-info {
    flex: 1;
}

.product-manage-info h4 {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.product-manage-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-manage-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Product Form */
.product-form-page {
    padding-top: 100px;
    padding-bottom: 60px;
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-preview {
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 300px;
    border: 1px solid var(--border);
}

.image-preview img {
    width: 100%;
    display: block;
}

.seller-products-page {
    padding-top: 100px;
    padding-bottom: 60px;
}

/* ===== IMAGE UPLOAD AREA ===== */
.image-upload-area {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.image-upload-area:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.image-upload-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.upload-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity var(--transition);
}

.image-upload-area:hover .upload-overlay {
    opacity: 1;
}