/* Dashboard Layout */
.cc-dashboard {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.cc-dashboard-sidebar {
    width: 250px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.cc-dashboard-nav ul {
    list-style: none;
    padding: 0;
}

.cc-dashboard-nav li a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.cc-dashboard-nav li a.active,
.cc-dashboard-nav li a:hover {
    background: #4f46e5;
    color: #fff;
}

.cc-dashboard-content {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Builder Layout 2026 */
.cc-builder-container {
    background: #fff;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 1200px;
    margin: 40px auto;
}

.cc-builder-steps-nav {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.cc-step-indicator {
    flex: 1;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #94a3b8;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.cc-step-indicator:hover {
    color: #4f46e5;
}

.cc-step-indicator.active {
    color: #4f46e5;
    background: #fff;
}

.cc-step-indicator.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #4f46e5;
}

.cc-builder-main {
    display: grid;
    grid-template-columns: 1fr 450px;
    min-height: 600px;
}

@media (max-width: 1024px) {
    .cc-builder-main {
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 768px) {
    .cc-builder-container {
        margin: 10px auto;
        border-radius: 0;
    }
    .cc-builder-main {
        grid-template-columns: 1fr;
    }
    .cc-builder-preview {
        padding: 20px;
        min-height: 300px;
    }
    .cc-builder-controls {
        padding: 20px;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
    .cc-step-indicator {
        padding: 10px 5px;
        font-size: 11px;
    }
    .cc-builder-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .cc-actions {
        width: 100%;
        justify-content: center;
    }
}

.cc-builder-preview {
    background: #f1f5f9;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#product-canvas-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

#cc-product-base {
    width: 100%;
    height: auto;
    transition: 0.5s ease;
}

#cc-design-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    pointer-events: none;
}

.cc-builder-controls {
    padding: 40px;
    display: flex;
    flex-col: column;
    border-left: 1px solid #e2e8f0;
}

.cc-builder-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.cc-builder-step.active {
    display: block;
}

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

.cc-builder-step h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1e293b;
}

/* Product Grid */
.cc-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.cc-product-opt {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.cc-product-opt:hover {
    border-color: #cbd5e1;
}

.cc-product-opt.active {
    border-color: #4f46e5;
    background: #eef2ff;
}

.cc-product-opt img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.cc-product-opt span {
    display: block;
    font-size: 12px;
    font-weight: 700;
}

/* Custom Options */
.cc-custom-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cc-custom-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
}

.cc-custom-opt input {
    width: 20px;
    height: 20px;
}

.cc-moq-info {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 13px;
}

.cc-moq-info ul {
    margin: 5px 0 0 20px;
    padding: 0;
}

.cc-builder-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-price-display span {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.cc-price-display strong {
    font-size: 28px;
    font-weight: 900;
    color: #1e293b;
}

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

.cc-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
}

.cc-btn.primary {
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.cc-btn.primary:hover {
    background: #4338ca;
}

.cc-btn.secondary {
    background: #f1f5f9;
    color: #475569;
}

/* Messaging */
.cc-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
}

.cc-message.sent {
    background: #eef2ff;
    margin-left: auto;
}

.cc-message.received {
    background: #f5f5f5;
}

/* Progress Bar */
.cc-progress-container {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 10px;
    position: relative;
    height: 20px;
    overflow: hidden;
}

.cc-progress-bar {
    height: 100%;
    background-color: #28a745;
    transition: width 0.4s ease;
}

.cc-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
    color: #333;
}
