.mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background-color: #333;
    padding: 5px;
    border-radius: 8px;
}

.mode-btn {
    flex: 1;
    padding: 10px;
    background-color: transparent;
    color: #aaa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.mode-btn.active {
    background-color: #5c8e9c;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-input {
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
}

.stat-input label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: bold;
    font-size: 14px;
}

.stat-input input {
    width: 100%;
    padding: 12px;
    background-color: #2d2d2d;
    border: 1px solid #555;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.stat-input input:focus {
    outline: none;
    border-color: #5c8e9c;
}

.result-display {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.9), rgba(35, 35, 35, 0.9));
    border: 2px solid #5c8e9c;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.result-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(92, 142, 156, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ratio-value {
    font-size: 4rem;
    font-weight: bold;
    color: #5c8e9c;
    margin: 10px 0;
    position: relative;
}

.ratio-label {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 20px;
    position: relative;
}

.performance-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 10px;
    position: relative;
}

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 16px;
    border-radius: 20px;
    background-color: #5c8e9c;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.formula-box {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.formula-box h3 {
    margin-top: 0;
    color: #5c8e9c;
}

.formula {
    background-color: #2d2d2d;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    text-align: center;
    font-size: 1.1rem;
    margin: 10px 0;
    color: #e0e0e0;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.summary-item {
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #5c8e9c;
}

.summary-label {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 5px;
}

.share-url {
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-url input {
    flex: 1;
    background-color: #2d2d2d;
    border: 1px solid #555;
    padding: 10px;
    border-radius: 4px;
    color: #e0e0e0;
}

.copy-btn {
    padding: 10px 20px;
    background-color: #5c8e9c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: bold;
}

.copy-btn:hover {
    background-color: #4a7a8a;
}

@media (max-width: 768px) {
    .ratio-value {
        font-size: 3rem;
    }
    
    .result-display {
        padding: 30px 20px;
    }
    
    .status-badge {
        position: static;
        display: block;
        margin: 10px auto;
        width: fit-content;
    }
}