/* WP 3D Viewer Ultimate V33 - Professional UI */

/* --- CORE VARS --- */
:root {
    --wp3d-primary: #0071e3;
    --wp3d-success: #34c759;
    --wp3d-warning: #ff9f0a;
    --wp3d-danger: #ff3b30;
    --wp3d-bg: #f5f5f7;
    --wp3d-card-bg: #ffffff;
    --wp3d-text-main: #1d1d1f;
    --wp3d-text-sec: #86868b;
    --wp3d-border: #d2d2d7;
    --wp3d-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --wp3d-radius: 12px;
}

/* --- FRONTEND: MY QUOTES DASHBOARD --- */
.wp-3d-dashboard {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--wp3d-text-main);
    background: var(--wp3d-bg);
    padding: 30px;
    border-radius: 20px;
}

.wp-3d-dashboard-header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--wp3d-border);
    padding-bottom: 15px;
}

.wp-3d-dashboard-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--wp3d-text-main);
}

.wp-3d-quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.wp-3d-quote-card {
    background: var(--wp3d-card-bg);
    border-radius: var(--wp3d-radius);
    box-shadow: var(--wp3d-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.wp-3d-quote-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 180px;
    background: #f0f0f5;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wp3d-text-sec);
    font-size: 40px;
}

.card-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-badge.pending {
    background: var(--wp3d-warning);
}

.status-badge.quoted {
    background: var(--wp3d-success);
}

.status-badge.paid {
    background: var(--wp3d-primary);
}

.status-badge.closed {
    background: var(--wp3d-text-sec);
}

.card-body {
    padding: 20px;
    flex-grow: 1;
}

.card-id {
    font-size: 13px;
    color: var(--wp3d-text-sec);
    font-weight: 600;
    text-transform: uppercase;
}

.card-date {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 10px;
}

.card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--wp3d-text-main);
    margin: 10px 0;
}

.card-price.empty {
    color: var(--wp3d-text-sec);
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
}

.card-actions {
    padding: 15px 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-text {
    color: var(--wp3d-text-sec);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.btn-primary-sm {
    background: var(--wp3d-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary-sm:hover {
    background: #005bb5;
    color: white;
}

/* --- ADMIN PANEL (BACKEND) --- */
.wp3d-admin-panel {
    display: flex;
    gap: 20px;
    background: #fff;
    font-family: -apple-system, system-ui, sans-serif;
}

.wp3d-admin-main {
    flex: 2;
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.wp3d-admin-sidebar {
    flex: 1;
    min-width: 250px;
}

.wp3d-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.wp3d-admin-btn-action {
    background: var(--wp3d-primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.file-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-actions a {
    text-decoration: none;
    color: var(--wp3d-primary);
    font-weight: 600;
}

.wp3d-form-group {
    margin-bottom: 15px;
}

.wp3d-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}

.wp3d-form-group input,
.wp3d-form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.wp3d-form-group input:focus {
    border-color: var(--wp3d-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

/* --- VIEWER (Existing) --- */
/* The existing viewer.js styles are fine, just ensuring these new ones don't conflict */