/* Starforce Simulator Styles */

#starforce-simulator-app {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

#starforce-simulator-app h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 26px;
    font-weight: 700;
}

/* Input Section */
.sf-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.sf-input-group {
    display: flex;
    flex-direction: column;
}

.sf-input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.sf-input-group input,
.sf-input-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.sf-input-group input:focus,
.sf-input-group select:focus {
    border-color: #007cba;
    outline: none;
}

/* Options Section */
.sf-options-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.sf-option-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.sf-option-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.sf-option-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sf-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.sf-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.sf-checkbox-item label {
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

/* Advanced Options */
.sf-advanced-options {
    margin-bottom: 20px;
    text-align: right;
    font-size: 13px;
    color: #777;
}

.sf-advanced-options input {
    width: 80px;
    padding: 5px;
    margin-left: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Controls */
.sf-controls {
    margin-top: 20px;
}

#start-simulation {
    width: 100%;
    background-color: #ff8009; /* MapleStory Orange */
    color: #ffffff;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#start-simulation:hover {
    background-color: #e67300;
}

#start-simulation:active {
    transform: translateY(1px);
}

#start-simulation:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* Results Section */
#simulation-results {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.sf-results-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.sf-card {
    flex: 1;
    background-color: #f0f4f8;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e1e8ed;
}

.sf-card-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sf-card-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #2c3e50;
}

/* Chart Container */
.sf-chart-container {
    position: relative;
    height: 350px;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .sf-input-grid {
        grid-template-columns: 1fr;
    }
    
    .sf-results-cards {
        flex-direction: column;
    }
    
    .sf-checkbox-row {
        flex-direction: column;
        gap: 10px;
    }
    
    #starforce-simulator-app {
        padding: 20px;
        margin: 20px 10px;
    }
}
