/* --- Main Container --- */
#bottleneck-calculator-container {
    position: relative; width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
    min-height: 100vh; padding: 60px 20px;
    background: #0d1117; color: #e5e7eb; font-family: 'Inter', sans-serif; box-sizing: border-box;
}

/* --- Typography --- */
#bottleneck-calculator-container h3 { text-align: center; color: #ffffff; margin-top: 0; margin-bottom: 15px; font-size: clamp(24px, 5vw, 32px); font-weight: 700; }
#bottleneck-calculator-container h4 { font-size: 20px; color: #fff; margin: 0 0 20px 0; padding-bottom: 10px; border-bottom: 1px solid #30363d;}
#bottleneck-calculator-container h5 { font-size: 16px; color: #8b949e; margin: 0 0 15px 0; text-transform: uppercase; }
#bottleneck-calculator-container h6 { font-size: 16px; color: #c9d1d9; font-weight: 600; margin: 0 0 4px 0; }
#bottleneck-calculator-container p { text-align: center; max-width: 700px; margin: 0 auto 40px auto; color: #8b949e; font-size: 18px; line-height: 1.6; }

/* --- Form --- */
#bottleneck-form { max-width: 900px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-bottom: 25px; }
#bottleneck-calculator-container label { display: block; margin-bottom: 10px; font-weight: 500; color: #c9d1d9; }
#bottleneck-calculator-container select { width: 100%; padding: 15px; background-color: #161b22; border: 1px solid #30363d; border-radius: 8px; color: #e5e7eb; font-size: 16px; appearance: none; background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%238b949e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'); background-repeat: no-repeat; background-position: right 20px top 50%; background-size: 14px; transition: all 0.2s ease; }
.searchable-dropdown-container { position: relative; }
.searchable-input { width: 100%; padding: 15px; background-color: #161b22; border: 1px solid #30363d; border-radius: 8px; color: #e5e7eb; font-size: 16px; transition: all 0.2s ease; }
.searchable-input:focus { outline: none; border-color: #58a6ff; box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.3); }
.searchable-dropdown-list { display: none; position: absolute; top: 100%; left: 0; right: 0; background-color: #161b22; border: 1px solid #30363d; border-radius: 0 0 8px 8px; margin-top: -1px; max-height: 250px; overflow-y: auto; z-index: 1000; }
.searchable-dropdown-list.show { display: block; }
.dropdown-item { padding: 12px 15px; color: #c9d1d9; cursor: pointer; }
.dropdown-item:hover { background-color: #30363d; }
#advanced-options-btn { width: 100%; max-width: 400px; margin: 10px auto 25px auto; display: block; padding: 12px; background-color: transparent; border: 1px solid #30363d; color: #8b949e; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; }
#advanced-options-container { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out; }

/* --- Buttons --- */
#calculate-btn, #recalculate-btn { width: 100%; padding: 16px; font-size: 18px; color: #ffffff; background-image: linear-gradient(to right, #58a6ff 0%, #a371f7 100%); border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
#recalculate-btn { max-width: 300px; margin: 40px auto 0 auto; }

/* --- STYLISH RESULTS STYLES --- */
#calculator-results-section { max-width: 900px; margin: 0 auto; animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.result-card { 
    background: linear-gradient(145deg, #161b22, #0d1117);
    border: 1px solid #30363d;
    border-radius: 12px; 
    padding: 30px; 
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.result-card p { text-align: left; margin: 0; font-size: 14px; line-height: 1.7; color: #8b949e; }
#result-summary-card { display: flex; align-items: center; background: linear-gradient(145deg, #1c2433, #161b22); }
.summary-icon { flex-shrink: 0; width: 32px; height: 32px; margin-right: 20px; }
.summary-text { flex-grow: 1; }
.summary-text h4 { font-size: 20px; margin: 0 0 4px 0; }
.summary-text p { font-size: 16px; }
#bottleneck-analysis-card .analysis-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 15px; }
#bottleneck-analysis-card h4 { margin: 0; border: none; padding: 0; font-size: 20px; }
.analysis-values span { margin-left: 15px; font-size: 14px; font-weight: 500; }
#analysis-percentage { color: #c9d1d9; }
#analysis-status.balanced { color: #2ea043; text-shadow: 0 0 8px rgba(46, 160, 67, 0.5); }
#analysis-status.bottleneck { color: #f0883e; text-shadow: 0 0 8px rgba(240, 136, 62, 0.5); }
#analysis-recommendation { color: #8b949e; }
.analysis-bar-container { width: 100%; height: 8px; background-color: #0d1117; border-radius: 4px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.4); }
#analysis-bar { height: 100%; background: linear-gradient(90deg, #2ea043, #58a6ff); border-radius: 4px; transition: width 0.5s ease-in-out; }
#analysis-bar.orange { background: linear-gradient(90deg, #f0883e, #f85149); }
.detailed-performance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 25px; }
.component-detail-card { padding: 20px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.component-detail-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.component-detail-card img { max-width: 150px; height: 150px; object-fit: contain; margin-bottom: 15px; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2)); }
.component-detail-card .component-name { text-align: center; font-weight: 600; color: #c9d1d9; font-size: 18px; margin: 0; }
.component-stats { margin-top: 15px; border-top: 1px solid #30363d; padding-top: 15px; }
.component-stats p { font-size: 14px; color: #8b949e; margin-bottom: 5px; }
.component-stats span { font-weight: 600; color: #c9d1d9; }
.resolution-impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 20px; }
.impact-stat-group p { color: #c9d1d9; font-size: 16px; margin-bottom: 8px; }
.impact-stat-group p span { font-weight: 600; color: #c9d1d9; }
.limiting-factor { font-weight: 700; color: #f85149; text-shadow: 0 0 8px rgba(248, 81, 73, 0.5); }
.impact-description { border-top: 1px solid #30363d; padding-top: 20px; }
.assessment-row-v2 { display: flex; justify-content: space-between; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid #30363d; }
.assessment-row-v2:last-child { border-bottom: none; padding-bottom: 0; }
.assessment-row-v2:first-child { padding-top: 0; }
.assessment-info { flex-grow: 1; margin-right: 20px; }
.status { font-weight: 600; font-size: 16px; flex-shrink: 0; }
.status.good, .status.excellent { color: #2ea043; text-shadow: 0 0 8px rgba(46, 160, 67, 0.5); }
.status.fair { color: #f0883e; text-shadow: 0 0 8px rgba(240, 136, 62, 0.5); }
.status.poor { color: #f85149; text-shadow: 0 0 8px rgba(248, 81, 73, 0.5); }
#recommendations-list { list-style: none; padding-left: 0; margin: 0; }
#recommendations-list li { background: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%238b949e" viewBox="0 0 16 16"><circle cx="8" cy="8" r="8"/><path d="M4.5 8a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7z" fill="white"/></svg>') no-repeat left 2px; padding: 8px 0 8px 25px; color: #8b949e; border-bottom: 1px solid #30363d; }
#recommendations-list li:last-child { border-bottom: none; }
.info-banner { display: flex; align-items: flex-start; background-color: rgba(56, 139, 253, 0.1); border: 1px solid rgba(56, 139, 253, 0.2); border-radius: 6px; padding: 15px; margin-bottom: 25px; }
.info-banner-icon { flex-shrink: 0; width: 20px; height: 20px; background-color: #58a6ff; color: #0d1117; border-radius: 50%; text-align: center; line-height: 20px; font-weight: bold; margin-right: 15px; }
.info-banner p { margin: 0; color: #8b949e; font-size: 14px; }
.config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; }
/* NEW: Glassy config item styles */
.config-item { background: rgba(30, 41, 59, 0.5); border: 1px solid #30363d; border-radius: 10px; padding: 20px; backdrop-filter: blur(5px); }
.config-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.config-header label { font-size: 16px; font-weight: 600; color: #c9d1d9; margin: 0; }
.config-header span { font-size: 16px; font-weight: 600; color: #c9d1d9; }
.config-rating { display: block; font-weight: 600; margin-bottom: 8px; }
.config-rating.good, .config-rating.excellent { color: #2ea043; text-shadow: 0 0 8px rgba(46, 160, 67, 0.5); }
.config-rating.fair { color: #f0883e; text-shadow: 0 0 8px rgba(240, 136, 62, 0.5); }
.config-item p { font-size: 14px; }
.info-box-nested { background-color: rgba(56, 139, 253, 0.1); border: 1px solid rgba(56, 139, 253, 0.2); border-radius: 6px; padding: 20px; margin-top: 20px; }
.info-box-nested p { color: #8b949e; font-size: 14px; }
.info-box-nested p strong { color: #58a6ff; }
.experience-section { padding: 15px 0; border-bottom: 1px solid #30363d; }
.experience-section:last-child { border-bottom: none; padding-bottom: 0;}
.experience-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.experience-header h6 { margin: 0; }
.experience-header h6.esports { color: #58a6ff; }
.experience-header h6.aaa { color: #a371f7; }
.experience-rating { font-weight: 600; font-size: 16px; color: #2ea043; text-shadow: 0 0 8px rgba(46, 160, 67, 0.5); }
#optimization-list { list-style: none; padding-left: 0; margin-top: 10px; }
#optimization-list li { background: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%238b949e" viewBox="0 0 16 16"><circle cx="8" cy="8" r="8"/><path d="M4.5 8a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7z" fill="white"/></svg>') no-repeat left 2px; padding: 5px 0 5px 25px; color: #8b949e; }

@media (max-width: 768px) {
    .detailed-performance-grid, .resolution-impact-grid { grid-template-columns: 1fr; }
    #result-summary-card { flex-direction: column; align-items: flex-start; }
}