/* Container */
.dbd-container {
    max_width: 900px;
    /* Wider for dashboard */
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* Header */
.dbd-header {
    text-align: center;
    margin-bottom: 40px;
}

.dbd-header h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.dbd-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Steps */
.dbd-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.dbd-step.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dbd-step h3 {
    margin-bottom: 10px;
    color: #007bff;
}

.dbd-step-desc {
    margin-bottom: 25px;
    color: #666;
}

/* Form Elements */
.dbd-form-group {
    margin-bottom: 20px;
    text-align: left;
}

select#dbd-industry,
.dbd-input-text {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

select#dbd-industry:focus,
.dbd-input-text:focus {
    border-color: #007bff;
    outline: none;
}

/* Channels Grid */
.dbd-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.dbd-channel-item {
    position: relative;
    cursor: pointer;
}

.dbd-channel-item input {
    position: absolute;
    opacity: 0;
}

.dbd-channel-name {
    display: block;
    padding: 15px 10px;
    background: #f8f9fa;
    border: 2px solid #eee;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s;
}

.dbd-channel-item input:checked+.dbd-channel-name {
    background: #e7f1ff;
    border-color: #007bff;
    color: #007bff;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.1);
}

/* Buttons */
button {
    cursor: pointer;
    font-family: inherit;
}

.dbd-btn-next,
.dbd-btn-submit,
.dbd-btn-reset {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

.dbd-btn-next:hover,
.dbd-btn-submit:hover,
.dbd-btn-reset:hover {
    background: #0056b3;
}

.dbd-btn-prev {
    background: transparent;
    color: #666;
    border: 2px solid #eee;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-right: 10px;
}

.dbd-btn-prev:hover {
    background: #f8f9fa;
    color: #333;
}

/* DASHBOARD LAYOUT */
.dbd-dashboard {
    display: flex;
    gap: 40px;
    text-align: left;
    margin-top: 20px;
}

.dbd-dashboard-left {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dbd-dashboard-right {
    flex: 1;
}

/* Large Doughnut */
.dbd-chart-container-doughnut-large {
    position: relative;
    height: 280px;
    width: 280px;
    margin-bottom: 30px;
}

.dbd-chart-center-text-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#dbd-score-percent {
    font-size: 3rem;
    font-weight: 800;
    color: #007bff;
    display: block;
}

/* Gemini Box */
.dbd-gemini-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 2px solid #cce5ff;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.dbd-gemini-box h4 {
    margin-top: 0;
    color: #0056b3;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Chapter Items */
.dbd-chapter-item {
    margin-bottom: 30px;
}

.dbd-chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dbd-chapter-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.dbd-chapter-score {
    font-weight: 700;
    color: #007bff;
}

.dbd-progress-bar {
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.dbd-progress-fill {
    height: 100%;
    background: #007bff;
    border-radius: 6px;
    transition: width 1s ease;
}

/* Weighted ER Box */
.dbd-weighted-er {
    margin-top: 10px;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    border-left: 4px solid #28a745;
}

.dbd-er-icon {
    font-size: 1.2rem;
}

.dbd-weighted-er strong {
    color: #333;
}

#dbd-weighted-er-value {
    font-weight: 700;
    color: #28a745;
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .dbd-dashboard {
        flex-direction: column;
    }

    .dbd-dashboard-left {
        margin-bottom: 30px;
    }

    .dbd-container {
        padding: 20px;
    }
}