/* Base */
body {
    background: linear-gradient(135deg, #f7f7f7);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}

.l-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hidden { display: none !important; }

/* Main Box */
.unified-main-box {
    background: #203a43;
    backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Header */
.l-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.c-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 6px rgba(0,230,118,0.4));
}

.c-title {
    margin: 0;
    font-size: 26px;
    color: #00E676;
    letter-spacing: 2px;
}

.c-subtitle {
    font-size: 12px;
    color: #aaa;
}

/* Step Containers */
.step-container {
    padding: 30px;
}

.step-header-text {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Top Bar */
.config-top-bar {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Cards */
.c-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.c-sub-card {
    background: linear-gradient(145deg, #222, #2a2a2a);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}

.c-sub-card:hover {
    transform: translateY(-4px);
}

.card-header-blue {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    padding: 10px;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
}

.card-body {
    padding: 15px;
}

/* Inputs */
.c-input, .c-select {
    background: #1f1f1f;
    border: 1px solid #444;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    outline: none;
    transition: 0.2s;
}

.c-input:focus, .c-select:focus {
    border-color: #00E676;
    box-shadow: 0 0 6px rgba(0,230,118,0.4);
}

.width-sm { width: 200px !important; }
.width-xs { width: 80px !important; }

.field-row-3col {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Workspace */
.workspace-wrapper {
    background: #121212;
    padding: 15px;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.05);
}

.c-designer-workspace {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Grid Rows */
.grid-row {
    display: flex;
    align-items: center;
    width: fit-content;
    min-width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    transition: 0.2s;
}

.row-dark {
    background: linear-gradient(90deg, #14343af5, #5eb9dd);
}

.row-light {
    background: linear-gradient(90deg, #14343af5, #76d1f5);
}

.grid-row:hover {
    transform: scale(1.01);
}

/* Row Meta */
.row-meta {
    min-width: 200px;
    margin-right: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row-label-text {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
}

/* Badge */
.set-badge {
    background: #00E676;
    color: #000;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 6px;
    box-shadow: 0 0 10px rgba(0,230,118,0.6);
}

/* Time Input */
.ms-input {
    width: 75px;
    background: #fff;
    border: none;
    color: #000;
    padding: 6px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Bulbs */
.bulb-3d-large {
    width: 32px;
    height: 32px;
    margin: 0 5px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bulb-idx {
    font-size: 10px;
    color: #000;
    font-weight: 900;
}

/* Buttons (Main Styles & Hovers) */
.c-btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: 0.3s ease;
}

/* Generate, Continue, Initialize Designer Buttons */
.c-btn--primary {
    background: linear-gradient(135deg, #00E676, #00c853);
    color: #000;
    box-shadow: 0 5px 15px rgba(0,230,118,0.4);
}

.c-btn--primary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #5eb9dd, #76d1f5); 
    color: #000000;
    box-shadow: 0 8px 20px rgba(94, 185, 221, 0.5);
}

/* Back Button */
.c-btn--outline {
    background: #000000;
    border: 1px solid #000000;
    color: #fff;
}

.c-btn--outline:hover {
    border-color: #76d1f5;
    color: #76d1f5;
    background: rgba(118, 209, 245, 0.1);
    transform: translateY(-2px);
}

/* Reset All Button */
.c-btn--danger {
    background: linear-gradient(135deg, #d30c0c, #d32f2f);
    color: #000000;
}

.c-btn--danger:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #df0e0e, #cf0d0d); 
    box-shadow: 0 8px 20px rgba(20, 52, 58, 0.6);
}

/* Footer Buttons */
.footer-actions,
.designer-bottom-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Header Meta */
.designer-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Glow Selector */
.glow-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.c-color-picker {
    border: none;
    background: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
}

/* --- ADDED ANIMATION & SIDE-BY-SIDE LAYOUT STYLES --- */

.step-layout-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.step-content-left {
    flex: 1;
}

.sample-preview-right {
    width: 220px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(0, 230, 118, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sample-title {
    font-size: 12px;
    color: #00E676;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bulb-grid-4x4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sample-bulb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 5px rgba(255,255,255,0.3);
    animation: breathe 2s infinite ease-in-out;
}

/* Staggered animation for a natural look */
.sample-bulb:nth-child(odd) { animation-delay: 0.5s; }
.sample-bulb:nth-child(3n) { animation-delay: 1s; }
.sample-bulb:nth-child(4n) { animation-delay: 1.5s; }

@keyframes breathe {
    0%, 100% { 
        background: #fff; 
        box-shadow: 0 0 5px #fff; 
        transform: scale(1);
    }
    50% { 
        background: #00E676; 
        box-shadow: 0 0 20px #00E676, 0 0 40px rgba(0,230,118,0.4); 
        transform: scale(1.1);
    }
}