/* Whiteout Survivor Calculator - Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: url('./WO_back.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    min-height: 100vh;
    color: #2c3e50;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: -1;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.main-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.main-layout .status-bar {
    flex: 1 1 50%;
    max-width: calc(50% - 10px);
}

.main-layout .results {
    flex: 1 1 50%;
    max-width: calc(50% - 10px);
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

/* Plan Type Selector */
.plan-type-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.plan-type-selector > label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.plan-options {
    display: flex;
    gap: 10px;
}

.plan-option {
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-option input[type="radio"] {
    display: none;
}

.plan-option span {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    transition: all 0.2s ease;
}

.plan-option:hover span {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.plan-option input[type="radio"]:checked + span {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Training Goal Options */
.train-new-options {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.train-new-options > label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.goal-options {
    display: flex;
    gap: 10px;
}

.goal-option {
    cursor: pointer;
    transition: all 0.2s ease;
}

.goal-option input[type="radio"] {
    display: none;
}

.goal-option span {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 11px;
    color: #333;
    transition: all 0.2s ease;
}

.goal-option:hover span {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.goal-option input[type="radio"]:checked + span {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* Training Boost Input Groups */
.training-speed-group,
.training-capacity-group {
    /* These now use standard input-group styling */
}

/* Target Goal Inputs - EXACT same pattern as target levels */
.target-goal-inputs {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}

.goal-input-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.goal-input-section label {
    min-width: 180px;
    flex-shrink: 0;
}

.goal-input-section input {
    flex: 1;
    max-width: 150px;
}

/* Time Inputs */
.time-inputs {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.time-input-group input {
    width: 80px;
    text-align: center;
}

.time-input-group label {
    font-size: 11px;
    color: #666;
    margin: 0;
    min-width: auto;
}

/* Troop Split Inputs */
.troop-split-inputs {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.troop-split-inputs > label {
    text-align: center;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.split-input {
    width: 80px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    background: #fff;
}

/* Hide troop split inputs by default */
.input-group:has(label[for="infantry-split"]),
.input-group:has(label[for="marksman-split"]),
.input-group:has(label[for="lancer-split"]),
.input-group:has(label[for="even-split-checkbox"]),
.input-group:has(#split-total) {
    display: none;
}

.split-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.split-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* Style the total display */
.even-split-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.total-display {
    margin-left: auto;
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
}

#split-total {
    color: #28a745;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Troop levels group styling - following construction tab pattern */
/* LINT: Use flex-direction: column only for group containers, keep align-items: flex-start */
.troop-levels-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.troop-levels-group > label {
    align-self: flex-start;
}



.troop-levels {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.troop-level {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.troop-level label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    white-space: nowrap;
}

.troop-level input {
    width: 50px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    text-align: center;
}

/* Training time - simple two row layout */
.training-time-simple {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.training-time-row-1 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.training-time-row-2 {
    display: flex;
    gap: 20px;
    align-items: center;
}





/* Troop splits group styling - following same pattern as troop levels */
.troop-splits-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}



.troop-splits-group > label {
    align-self: flex-start;
}

.even-split-controls {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.troop-splits {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.troop-split {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.troop-split label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    white-space: nowrap;
}

.troop-split input {
    width: 50px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    text-align: center;
    background: white;
}



.split-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.split-total span:first-child {
    font-weight: 600;
    color: #333;
}

#split-total {
    color: #007bff;
    font-weight: 700;
}

#even-split-btn {
    padding: 6px 12px;
    font-size: 11px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#even-split-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Coming Soon Container */
.coming-soon-container {
    text-align: center;
    padding: 40px 20px;
}

.coming-soon-image {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.coming-soon-container h3 {
    font-size: 2rem;
    color: #1976d2;
    margin-bottom: 15px;
    font-weight: 700;
}

.coming-soon-container p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.coming-soon-container p:last-child {
    font-size: 1rem;
    color: #888;
    font-style: italic;
}

/* Training Plans Group */
.training-plans-group {
    grid-column: 1 / -1; /* Span full width */
}





/* Training Plans Container */
.training-plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.troop-plan {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
    min-height: 80px;
}

.troop-plan:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.troop-plan h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.plan-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.plan-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plan-row label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.plan-row input {
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 13px;
    background: white;
    text-align: center;
}

.plan-row input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Field visibility based on strategy */
.upgrade-field {
    display: flex;
    justify-content: flex-start;
}

/* Upgrade coming soon styling */
.upgrade-coming-soon .coming-soon-container {
    text-align: center;
    padding: 40px 20px;
    width: 100%;
}

.upgrade-coming-soon .coming-soon-image {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.upgrade-coming-soon .coming-soon-container h3 {
    font-size: 1.5rem;
    color: #1976d2;
    margin-bottom: 15px;
    font-weight: 700;
}

.upgrade-coming-soon .coming-soon-container p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.quantity-field {
    display: flex;
    justify-content: flex-start;
}

.time-field {
    display: none;
}

/* Plan Breakdown Styling */
.plan-breakdown {
    margin-top: 20px;
}

/* Debug Section Styling */
.debug-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.debug-section h3 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.debug-section pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.plan-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.plan-item h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.plan-item p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.tab-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tab-button.active {
    background: rgba(25, 118, 210, 0.8);
    border-color: rgba(25, 118, 210, 0.9);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.tab-button i {
    font-size: 0.9rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 25px;
    color: white;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    color: white;
}

.header p {
    font-size: 1rem;
    color: #000000 !important;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.8);
}

/* Status Bar */
.status-bar {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,248,255,0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 6px 24px rgba(31, 38, 135, 0.15);
    position: relative;
    overflow: hidden;
}

.status-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1976d2, #42a5f5, #90caf9);
}

.status-bar h2 {
    color: #1a237e;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-bar h2 i {
    color: #1976d2;
    font-size: 1.2rem;
}

.status-content {
    width: 100%;
}

.input-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 36px;
}

/* 
 * TROOP TRAINING CSS LINTING RULES - ENFORCE LEFT ALIGNMENT
 * ❌ NEVER use: align-items: center, justify-content: center, flex-direction: column
 * ✅ ALWAYS use: align-items: flex-start, justify-content: flex-start, flex-direction: row
 * 🚫 NO vertical stacking, NO center alignment, NO complex nested layouts
 */

/* Compact input groups for troop training */
#troops-tab .input-group {
    padding: 4px 8px;
    min-height: 28px;
    gap: 6px;
    margin-bottom: 4px;
    align-items: flex-start;
}



#troops-tab .input-group:last-child {
    margin-bottom: 0;
}

/* Compact text and inputs for troop training */
#troops-tab .input-group label {
    font-size: 0.8rem;
}

#troops-tab .input-group input[type="number"] {
    padding: 4px 6px;
    font-size: 0.8rem;
}

#troops-tab .input-group small {
    font-size: 0.7rem;
}

#troops-tab .input-group i {
    font-size: 0.9rem;
    width: 14px;
}

.input-group:has(.button-container) {
    padding: 12px;
    width: 100%;
}

.input-group .button-container {
    width: 100%;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.input-group i {
    color: #1976d2;
    font-size: 1rem;
    width: 16px;
    flex-shrink: 0;
}

.input-group label {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.input-group input[type="number"] {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 0.9rem;
    width: 80px;
    flex-shrink: 0;
}

.input-group small {
    color: #1976d2;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.ministry-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.ministry-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ministry-header i {
    color: #1976d2;
    font-size: 1rem;
    width: 16px;
    flex-shrink: 0;
}

.ministry-header label {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    margin-top: 2px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: normal !important;
    font-size: 0.85rem;
    cursor: pointer;
}

.checkbox-label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.status-item input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    background: white;
    color: #1976d2;
    transition: all 0.3s ease;
}

.status-item input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Cards */
.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,255,0.95) 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1976d2, #42a5f5, #90caf9);
}

.card h2 {
    color: #1a237e;
    margin-bottom: 18px;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.card h2 i {
    color: #1976d2;
}

/* Form Elements */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1976d2;
    background: white;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
}

/* Button container for side-by-side layout */
.button-container {
    display: flex !important;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.button-container .btn-primary,
.button-container .btn-secondary,
.button-container #calculate-btn,
.button-container #reset-btn {
    flex: 1 !important;
    width: auto !important;
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(25, 118, 210, 0.3);
}

button.btn-secondary,
button#reset-btn,
#reset-btn.btn-secondary {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%) !important;
    color: #424242 !important;
    border: 1px solid #9e9e9e !important;
}

button.btn-secondary:hover,
button#reset-btn:hover,
#reset-btn.btn-secondary:hover {
    background: linear-gradient(135deg, #d0d0d0 0%, #a0a0a0 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(158, 158, 158, 0.3);
}

/* Requirements Container */
.requirements-container {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    border-radius: 12px;
    border: 1px solid #e3f2fd;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.requirements-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1976d2, #42a5f5);
}

.requirements-header {
    background: rgba(25, 118, 210, 0.1);
    padding: 12px 16px;
    border-bottom: 1px solid #e3f2fd;
}

.requirements-header h3 {
    margin: 0;
    color: #1a237e;
    font-size: 1.1rem;
    font-weight: 600;
}

.requirements-content {
    padding: 8px 16px;
}

.resource-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(227, 242, 253, 0.5);
}

.resource-row:last-child {
    border-bottom: none;
}

.resource-row i {
    font-size: 1.1rem;
    color: #1976d2;
    width: 20px;
    text-align: center;
}

.resource-row .label {
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
    font-size: 0.9rem;
}

.resource-row .value {
    font-weight: 700;
    font-size: 1rem;
    color: #1a237e;
}

/* Boost Section */
.boost-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.boost-section h3 {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.boost-section h3 i {
    color: #1976d2;
}

.boost-breakdown {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #1976d2;
}

.boost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.boost-item:last-child {
    border-bottom: none;
}

.boost-label {
    font-weight: 500;
    color: #2c3e50;
}

.boost-value {
    font-weight: 600;
    color: #1976d2;
}

.boost-total {
    background: rgba(25, 118, 210, 0.1);
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    font-weight: 600;
    color: #1976d2;
    text-align: center;
}

/* Progress Section */
.progress-section {
    margin-top: 30px;
}

.progress-section h3 {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-section h3 i {
    color: #1976d2;
}

/* Progress Items */
.progress-item {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #1976d2;
    position: relative;
    overflow: hidden;
}

.progress-item h4 {
    color: #1a237e;
    margin-bottom: 5px;
    font-weight: 600;
}

.progress-item p {
    color: #2c3e50;
    font-size: 0.9rem;
}

.progress-item.summary {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
    padding: 20px;
}

.progress-item.summary h4 {
    color: #2e7d32;
    font-size: 1.1rem;
}

/* Level Breakdown */
.level-breakdown {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.level-breakdown h5 {
    color: #424242;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.level-item {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    border-left: 3px solid #2196f3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.level-item:last-child {
    margin-bottom: 0;
}

.level-header {
    color: #1976d2;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 60px;
}

.level-resources {
    color: #424242;
    font-size: 0.85rem;
    flex: 1;
}



/* Dependencies Section */
.dependencies-section {
    margin-top: 30px;
}

.dependencies-section h3 {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dependencies-section h3 i {
    color: #1976d2;
}

.dependency-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ffcc02;
    color: #e65100;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.dependency-item {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #ffd54f;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.dependency-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff9800, #ffc107);
}

.dependency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.dependency-header h4 {
    color: #e65100;
    font-weight: 600;
    margin: 0;
}

.dependency-cost {
    color: #bf360c;
    font-weight: 500;
    font-size: 0.9rem;
}

.dependency-details p {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 500;
}

.dependency-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.resource-item i {
    color: #1976d2;
    width: 16px;
}

/* Animations */
.results {
    animation: slideIn 0.5s ease-out;
}

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

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-position: center top;
        background-size: cover;
        background-repeat: no-repeat;
    }
    
    .main-layout {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-layout .status-bar,
    .main-layout .results {
        flex: none;
        max-width: 100%;
    }
    
    .input-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .input-group {
        padding: 8px 12px;
        min-height: 35px;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .status-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .status-item {
        justify-content: space-between;
    }
    
    .dependency-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
